From 55bd16db4090492bba0465789846529a16d8a0ce Mon Sep 17 00:00:00 2001 From: garak Date: Mon, 3 Aug 2020 19:28:26 -0400 Subject: [PATCH] actually use new function to disable ui --- src/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }