GUI: Disable project MRU items while checking.
Project file can't be opened when the check is running. So the menu items must be disabled. Fixes ticket: #3446 (GUI: MRU items must be disabled while checking)
This commit is contained in:
parent
379440e2a4
commit
314fd25f6e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue