aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 7d1db25233..19486dce3f 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -552,6 +552,8 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
g_object_unref (iter);
+ /* we also need gd during emition to be able to catch Cancel All */
+ data->gd = gd;
/* Hook: If some one wants to hook on to the sendreceive dialog, this is the way to go. */
target = em_event_target_new_send_receive (em_event_peek(), table, data, row, EM_EVENT_SEND_RECEIVE);
e_event_emit ((EEvent *)em_event_peek (), "mail.sendreceive", (EEventTarget *) target);
@@ -628,7 +630,6 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
g_object_weak_ref ((GObject *) gd, (GWeakNotify) dialog_destroy_cb, data);
data->infos = list;
- data->gd = gd;
return data;
}