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>
This commit is contained in:
Dirk Hohndel 2013-05-03 16:30:36 -07:00
parent 98414ac9a9
commit c385e7aae8

View file

@ -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()