summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 16:30:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 16:30:36 -0700
commitc385e7aae8c7ac0d381a94440e32ecb3b115e9fc (patch)
treef548794b84ee056361da3f9ff24f6149e16e1794 /qt-ui
parent98414ac9a9ab927b475088a982ebaf8200c647c8 (diff)
downloadsubsurface-c385e7aae8c7ac0d381a94440e32ecb3b115e9fc.tar.gz
Make Ctrl-q work as Quit
It's annoying to always have to close the window with the mouse. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 93ea3d615..d8e786b86 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -150,9 +150,10 @@ void MainWindow::on_actionPreferences_triggered()
void MainWindow::on_actionQuit_triggered()
{
- qDebug("actionQuit");
if (unsaved_changes() && (askSaveChanges() == FALSE))
return;
+ writeSettings();
+ QApplication::quit();
}
void MainWindow::on_actionDownloadDC_triggered()