diff options
author | mephinet <mephinet@gmx.net> | 2020-10-21 12:17:28 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2020-11-09 17:32:16 +0200 |
commit | a2a452f249947e6fd603d35d86a82e7c5d650795 (patch) | |
tree | b3ca1f606f2fac7667ffcfd236829b988237d042 /src | |
parent | 284082551938b65e71d06bda793fedbd4a4f41ab (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index e1a0a82..d36cf57 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -222,7 +222,7 @@ bool MainWindow::on_key_press_event(GdkEventKey* event) { case GDK_KEY_Q: case GDK_KEY_w: case GDK_KEY_q: - this->get_application()->quit(); + close(); return true; } } |