From a2a452f249947e6fd603d35d86a82e7c5d650795 Mon Sep 17 00:00:00 2001 From: mephinet Date: Wed, 21 Oct 2020 12:17:28 +0200 Subject: [PATCH] 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. --- src/mainwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }