aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/e-shell.c3
1 files changed, 2 insertions, 1 deletions
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