disable ui when no project is open (closes #281)
This commit is contained in:
parent
3312280287
commit
1575d3f799
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,9 @@ void MainWindow::initWindow() {
|
|||
this->initMiscHeapObjects();
|
||||
this->initMapSortOrder();
|
||||
this->restoreWindowState();
|
||||
|
||||
setDisabled(true);
|
||||
ui->menuFile->setDisabled(false);
|
||||
}
|
||||
|
||||
void MainWindow::initExtraShortcuts() {
|
||||
|
@ -370,6 +373,8 @@ bool MainWindow::openProject(QString dir) {
|
|||
Scripting::cb_ProjectOpened(dir);
|
||||
}
|
||||
|
||||
setDisabled(false);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue