aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mail/e-mail-shell-backend.c')
-rw-r--r--modules/mail/e-mail-shell-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index d740094a15..6655edb4af 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -427,9 +427,9 @@ mail_shell_backend_window_created_cb (EShell *shell,
mail_shell_backend_window_weak_notify_cb, shell);
if (first_time) {
- g_signal_connect (
+ g_signal_connect_swapped (
window, "map-event",
- G_CALLBACK (e_msg_composer_check_autosave), NULL);
+ G_CALLBACK (e_msg_composer_check_autosave), shell);
first_time = FALSE;
}
}