From 0a016671ee2b5004df4fd2bca80f0e34e68476c3 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 6 Jan 2012 09:37:27 +0100 Subject: Do not call gtk_main_quit() on shell quit when none is running --- shell/e-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/e-shell.c b/shell/e-shell.c index 32c43ffd05..dd0f4db19a 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -413,7 +413,8 @@ shell_ready_for_quit (EShell *shell, g_list_foreach (list, (GFunc) gtk_widget_destroy, NULL); g_list_free (list); - gtk_main_quit (); + if (gtk_main_level () > 0) + gtk_main_quit (); } static void -- cgit v1.2.3