diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-07-09 16:32:20 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-07-09 16:32:20 (GMT) |
commit | a64ee00ca0acd157ad8ddbef5e72608daba163dc (patch) | |
tree | b72dd2fa7d0acd2ac96f9271442eb9704b209781 | |
parent | a96419df01b462c1ab047bdde6f2b2797a444870 (diff) | |
download | swift-a64ee00ca0acd157ad8ddbef5e72608daba163dc.zip swift-a64ee00ca0acd157ad8ddbef5e72608daba163dc.tar.bz2 |
Disable debug console in Eagle mode.
Resolves: #889
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 7 | ||||
-rw-r--r-- | Swift/QtUI/QtLoginWindow.h | 1 |
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_; }; } |