Merge pull request #73 from kimmov/gui-disable-mru

GUI: Disable project MRU items while checking.
This commit is contained in:
Daniel Marjamäki 2011-12-28 23:09:51 -08:00
commit ca0aade720
1 changed files with 10 additions and 0 deletions

View File

@ -530,6 +530,11 @@ void MainWindow::CheckDone()
mUI.mActionSave->setEnabled(true);
}
for (int i = 0; i < MaxRecentProjects + 1; i++) {
if (mRecentProjectActs[i] != NULL)
mRecentProjectActs[i]->setEnabled(true);
}
// Notify user - if the window is not active - that check is ready
QApplication::alert(this, 3000);
}
@ -545,6 +550,11 @@ void MainWindow::CheckLockDownUI()
mUI.mActionCplusplus11->setEnabled(false);
mUI.mActionC99->setEnabled(false);
mUI.mActionPosix->setEnabled(false);
for (int i = 0; i < MaxRecentProjects + 1; i++) {
if (mRecentProjectActs[i] != NULL)
mRecentProjectActs[i]->setEnabled(false);
}
}
void MainWindow::ProgramSettings()