diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index ffc1d3715c..f5a25838eb 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-02-08 Not Zed <NotZed@Ximian.com> + + * mail-send-recv.c (mail_send_receive): + (mail_receive_uri): Init active_downloads hash if it hasn't been yet. + 2001-02-07 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (operation_status): Handle internal camel status return. diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 3e83144e7a..ca47d461cf 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -550,6 +550,9 @@ void mail_send_receive(void) extern CamelFolder *outbox_folder; const MailConfigAccount *account; + if (active_downloads == NULL) + active_downloads = g_hash_table_new(g_str_hash, g_str_equal); + if (gd != NULL) { g_assert(GTK_WIDGET_REALIZED(gd)); gdk_window_show(gd->window); @@ -614,6 +617,9 @@ void mail_receive_uri(const char *uri, int keep) FilterContext *fc; struct _send_info *info; + if (active_downloads == NULL) + active_downloads = g_hash_table_new(g_str_hash, g_str_equal); + info = g_hash_table_lookup(active_downloads); if (info != NULL) return; |