From 490ce976f17994b2e68f35ce878c247ed84e5865 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Feb 2001 02:03:56 +0000 Subject: Init active_downloads hash if it hasn't been yet. 2001-02-08 Not Zed * mail-send-recv.c (mail_send_receive): (mail_receive_uri): Init active_downloads hash if it hasn't been yet. svn path=/trunk/; revision=8098 --- mail/ChangeLog | 5 +++++ mail/mail-send-recv.c | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * 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 * 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; -- cgit