From 30e15b4d88be32b5633e900d048cf13415a22a24 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Tue, 19 Jun 2007 11:06:41 +0000 Subject: [PATCH] 2007-06-19 Murray Cumming * src/modest-ui-actions.c: (modest_ui_actions_on_copy): Initialize the continue_download variable to fix the build, and probably to fix randome behaviour. pmo-trunk-r2307 --- ChangeLog2 | 6 ++++++ src/modest-ui-actions.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog2 b/ChangeLog2 index 736e459..c105de8 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,3 +1,9 @@ +2007-06-19 Murray Cumming + + * src/modest-ui-actions.c: (modest_ui_actions_on_copy): + Initialize the continue_download variable to fix the build, and probably + to fix randome behaviour. + 2007-06-18 Armin Burgmeier * src/modest-tny-send-queue.h: diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 59ac5ab..3b63ab3 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2194,7 +2194,6 @@ modest_ui_actions_on_copy (GtkAction *action, gtk_text_buffer_copy_clipboard (buffer, clipboard); modest_header_view_copy_selection (MODEST_HEADER_VIEW (focused_widget)); } else if (MODEST_IS_HEADER_VIEW (focused_widget)) { - gboolean continue_download, ask; TnyList *header_list = modest_header_view_get_selected_headers (MODEST_HEADER_VIEW (focused_widget)); TnyIterator *iter = tny_list_create_iterator (header_list); TnyHeader *header = TNY_HEADER (tny_iterator_get_current (iter)); @@ -2202,13 +2201,15 @@ modest_ui_actions_on_copy (GtkAction *action, TnyAccount *account = tny_folder_get_account (folder); const gchar *proto_str = tny_account_get_proto (TNY_ACCOUNT (account)); /* If it's POP then ask */ - ask = (modest_protocol_info_get_transport_store_protocol (proto_str) == + gboolean ask = (modest_protocol_info_get_transport_store_protocol (proto_str) == MODEST_PROTOCOL_STORE_POP) ? TRUE : FALSE; g_object_unref (account); g_object_unref (folder); g_object_unref (header); g_object_unref (iter); + /* Check that the messages have been previously downloaded */ + gboolean continue_download = TRUE; if (ask) continue_download = download_uncached_messages (header_list, GTK_WINDOW (window)); if (continue_download) -- 1.7.9.5