diff options
-rw-r--r-- | src/tab-chrome.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 9dd376a..b101b16 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -359,12 +359,12 @@ about_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) } static void -quit_clicked_cb(GtkButton G_GNUC_UNUSED *button, - MqTabChrome G_GNUC_UNUSED *chrome) +quit_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) { - /* TODO: Make a function mq_application_quit() that shows a confirmation - * dialog. */ - gtk_main_quit(); + mq_tab_quit(chrome->tab); + /* mq_tab_quit() just calls mq_window_quit(), which just calls + * mq_application_quit(), which is asynchronous. So close the menu. */ + gtk_widget_hide(chrome->menu_popover); } #define BUTTON_ROWS 6 |