aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r--shell/e-shell-window-actions.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index ce10bca488..e01aeb1b7b 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -840,11 +840,15 @@ action_import_cb (GtkAction *action,
assistant = e_import_assistant_new (GTK_WINDOW (shell_window));
- g_signal_connect (
+ /* These are "Run Last" signals, so use g_signal_connect_after()
+ * to give the default handlers a chance to run before we destroy
+ * the window. */
+
+ g_signal_connect_after (
assistant, "cancel",
G_CALLBACK (gtk_widget_destroy), NULL);
- g_signal_connect (
+ g_signal_connect_after (
assistant, "finished",
G_CALLBACK (gtk_widget_destroy), NULL);