diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-03 19:26:03 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-03 19:26:03 -0400 |
| commit | f9906825e7822771f2f3741b1c696e71bf1c76ce (patch) | |
| tree | 9046f18afe356b5736c98bf04ed18efb3ba0af5d /src/mainwindow.cpp | |
| parent | ea3f8826f13832e97fde8ae0c50c3533221df34e (diff) | |
fixed exit menu item not working
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f8c09b20..8eae1914 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1069,12 +1069,12 @@ void MainWindow::showEvent(QShowEvent *event) void MainWindow::closeEvent(QCloseEvent* event) { - if (!exit()) { + if (!confirmExit()) { event->ignore(); } } -bool MainWindow::exit() +bool MainWindow::confirmExit() { m_closing = true; @@ -5518,7 +5518,9 @@ void MainWindow::on_actionUpdate_triggered() void MainWindow::on_actionExit_triggered() { - exit(); + if (confirmExit()) { + qApp->exit(); + } } void MainWindow::actionEndorseMO() |
