From b92f7b854a33954da4a1559767207aabc2ab6111 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 13 Jul 2010 12:46:28 +0300 Subject: [PATCH] GUI: Disable Project file menu items when checking. --- gui/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 9ce5824bb..e4e15e1ef 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -235,6 +235,8 @@ void MainWindow::DoCheckFiles(const QStringList &files) EnableCheckButtons(false); mUI.mActionSettings->setEnabled(false); mUI.mActionOpenXML->setEnabled(false); + mUI.mActionNewProjectFile->setEnabled(false); + mUI.mActionOpenProjectFile->setEnabled(false); mUI.mResults->SetCheckDirectory(absDirectory); @@ -396,6 +398,9 @@ void MainWindow::CheckDone() EnableCheckButtons(true); mUI.mActionSettings->setEnabled(true); mUI.mActionOpenXML->setEnabled(true); + mUI.mActionNewProjectFile->setEnabled(false); + mUI.mActionOpenProjectFile->setEnabled(false); + if (mUI.mResults->HasResults()) { mUI.mActionClearResults->setEnabled(true);