mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
98414ac9a9
commit
c385e7aae8
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue