aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-08 10:03:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-08 10:03:56 +0800
commit490ce976f17994b2e68f35ce878c247ed84e5865 (patch)
tree751fb2526c474494c6d382586ddc8e20ae5e4bff
parente66038cbaf3a26e99ec7c9b811b534471d3b0cd0 (diff)
downloadgsoc2013-evolution-490ce976f17994b2e68f35ce878c247ed84e5865.tar.gz
gsoc2013-evolution-490ce976f17994b2e68f35ce878c247ed84e5865.tar.zst
gsoc2013-evolution-490ce976f17994b2e68f35ce878c247ed84e5865.zip
Init active_downloads hash if it hasn't been yet.
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. svn path=/trunk/; revision=8098
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-send-recv.c6
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;