summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-09 16:32:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-09 16:32:20 (GMT)
commita64ee00ca0acd157ad8ddbef5e72608daba163dc (patch)
treeb72dd2fa7d0acd2ac96f9271442eb9704b209781 /Swift
parenta96419df01b462c1ab047bdde6f2b2797a444870 (diff)
downloadswift-contrib-a64ee00ca0acd157ad8ddbef5e72608daba163dc.zip
swift-contrib-a64ee00ca0acd157ad8ddbef5e72608daba163dc.tar.bz2
Disable debug console in Eagle mode.
Resolves: #889
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp7
-rw-r--r--Swift/QtUI/QtLoginWindow.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index a0823d0..2514259 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -162,9 +162,9 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow(), forg
connect(aboutAction, SIGNAL(triggered()), SLOT(handleAbout()));
swiftMenu_->addAction(aboutAction);
- QAction* xmlConsoleAction = new QAction(tr("&Show Debug Console"), this);
- connect(xmlConsoleAction, SIGNAL(triggered()), SLOT(handleShowXMLConsole()));
- generalMenu_->addAction(xmlConsoleAction);
+ xmlConsoleAction_ = new QAction(tr("&Show Debug Console"), this);
+ connect(xmlConsoleAction_, SIGNAL(triggered()), SLOT(handleShowXMLConsole()));
+ generalMenu_->addAction(xmlConsoleAction_);
toggleSoundsAction_ = new QAction(tr("&Play Sounds"), this);
toggleSoundsAction_->setCheckable(true);
@@ -201,6 +201,7 @@ void QtLoginWindow::setRememberingAllowed(bool allowed) {
forgetful_ = true;
remember_->setEnabled(allowed);
loginAutomatically_->setEnabled(allowed);
+ xmlConsoleAction_->setEnabled(allowed);
if (!allowed) {
remember_->setChecked(false);
loginAutomatically_->setChecked(false);
diff --git a/Swift/QtUI/QtLoginWindow.h b/Swift/QtUI/QtLoginWindow.h
index b2c547e..4628af7 100644
--- a/Swift/QtUI/QtLoginWindow.h
+++ b/Swift/QtUI/QtLoginWindow.h
@@ -87,5 +87,6 @@ namespace Swift {
UIEventStream* uiEventStream_;
QPointer<QtAboutWidget> aboutDialog_;
bool forgetful_;
+ QAction* xmlConsoleAction_;
};
}