From a64ee00ca0acd157ad8ddbef5e72608daba163dc Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 9 Jul 2011 17:32:20 +0100 Subject: Disable debug console in Eagle mode. Resolves: #889 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 aboutDialog_; bool forgetful_; + QAction* xmlConsoleAction_; }; } -- cgit v0.10.2-6-g49f6