From c385e7aae8c7ac0d381a94440e32ecb3b115e9fc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 3 May 2013 16:30:36 -0700 Subject: Make Ctrl-q work as Quit It's annoying to always have to close the window with the mouse. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') 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() -- cgit v1.2.3-70-g09d2