mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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()
|
void MainWindow::on_actionQuit_triggered()
|
||||||
{
|
{
|
||||||
qDebug("actionQuit");
|
|
||||||
if (unsaved_changes() && (askSaveChanges() == FALSE))
|
if (unsaved_changes() && (askSaveChanges() == FALSE))
|
||||||
return;
|
return;
|
||||||
|
writeSettings();
|
||||||
|
QApplication::quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionDownloadDC_triggered()
|
void MainWindow::on_actionDownloadDC_triggered()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue