aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 172939c387..18909bd0ff 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1122,9 +1122,6 @@ es_run_quit(EShell *shell)
gboolean
e_shell_quit(EShell *shell)
{
- if (shell->priv->preparing_to_quit)
- return FALSE;
-
EShellPrivate *priv;
GSList *component_infos;
GSList *sp;
@@ -1134,6 +1131,9 @@ e_shell_quit(EShell *shell)
priv = shell->priv;
+ if (priv->preparing_to_quit)
+ return FALSE;
+
component_infos = e_component_registry_peek_list (priv->component_registry);
can_quit = TRUE;
for (sp = component_infos; sp != NULL; sp = sp->next) {