GUI: Disable Project file menu items when checking.

This commit is contained in:
Kimmo Varis 2010-07-13 12:46:28 +03:00
parent cc64907edb
commit b92f7b854a
1 changed files with 5 additions and 0 deletions

View File

@ -235,6 +235,8 @@ void MainWindow::DoCheckFiles(const QStringList &files)
EnableCheckButtons(false); EnableCheckButtons(false);
mUI.mActionSettings->setEnabled(false); mUI.mActionSettings->setEnabled(false);
mUI.mActionOpenXML->setEnabled(false); mUI.mActionOpenXML->setEnabled(false);
mUI.mActionNewProjectFile->setEnabled(false);
mUI.mActionOpenProjectFile->setEnabled(false);
mUI.mResults->SetCheckDirectory(absDirectory); mUI.mResults->SetCheckDirectory(absDirectory);
@ -396,6 +398,9 @@ void MainWindow::CheckDone()
EnableCheckButtons(true); EnableCheckButtons(true);
mUI.mActionSettings->setEnabled(true); mUI.mActionSettings->setEnabled(true);
mUI.mActionOpenXML->setEnabled(true); mUI.mActionOpenXML->setEnabled(true);
mUI.mActionNewProjectFile->setEnabled(false);
mUI.mActionOpenProjectFile->setEnabled(false);
if (mUI.mResults->HasResults()) if (mUI.mResults->HasResults())
{ {
mUI.mActionClearResults->setEnabled(true); mUI.mActionClearResults->setEnabled(true);