mainwindow: Close window instead of quitting on Ctrl-W etc.

The end result is the same, so this isn't strictly needed - originally
this patch fixed a segfault, but that segfault got fixed in a different
way before merging this patch.
This commit is contained in:
mephinet 2020-10-21 12:17:28 +02:00 committed by Tanu Kaskinen
parent 2840825519
commit a2a452f249
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ bool MainWindow::on_key_press_event(GdkEventKey* event) {
case GDK_KEY_Q: case GDK_KEY_Q:
case GDK_KEY_w: case GDK_KEY_w:
case GDK_KEY_q: case GDK_KEY_q:
this->get_application()->quit(); close();
return true; return true;
} }
} }