summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
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()