diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 16:30:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 16:30:36 -0700 |
commit | c385e7aae8c7ac0d381a94440e32ecb3b115e9fc (patch) | |
tree | f548794b84ee056361da3f9ff24f6149e16e1794 /qt-ui | |
parent | 98414ac9a9ab927b475088a982ebaf8200c647c8 (diff) | |
download | subsurface-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.cpp | 3 |
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() |