summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 18:22:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 18:32:00 -0700
commitb6fce3f5562178b22e44dbe72742e9674e43e4cc (patch)
tree1088e275aa3db082f02a8e4a924c87169b031aa7 /qt-ui
parenta82411b67cb71833c7d35bd8d075956c1f5e03ea (diff)
downloadsubsurface-b6fce3f5562178b22e44dbe72742e9674e43e4cc.tar.gz
Closing the window should behave like triggering Quit
It seems odd to have different behavior depending on whether the window manager tells us that the user wants to close the window or whether the user hits quit or ctrl-q. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 92d5f6d7c..f6dd1b37f 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -802,7 +802,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
{
if (DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
ui.InfoWidget->isEditing()) {
- QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before closing the file."));
+ on_actionQuit_triggered();
event->ignore();
return;
}