diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 26a862bf..bf9c1c64 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -87,8 +87,7 @@ void MainWindow::initWindow() { this->initMapSortOrder(); this->restoreWindowState(); - setDisabled(true); - ui->menuFile->setDisabled(false); + setWindowDisabled(true); } void MainWindow::initExtraShortcuts() { @@ -388,7 +387,7 @@ bool MainWindow::openProject(QString dir) { Scripting::cb_ProjectOpened(dir); } - setDisabled(false); + setWindowDisabled(false); return success; }