2007-06-19 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Tue, 19 Jun 2007 11:06:41 +0000 (11:06 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 19 Jun 2007 11:06:41 +0000 (11:06 +0000)
* 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
src/modest-ui-actions.c

index 736e459..c105de8 100644 (file)
@@ -1,3 +1,9 @@
+2007-06-19  Murray Cumming  <murrayc@murrayc.com>
+
+       * 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  <armin@openismus.com>
 
        * src/modest-tny-send-queue.h:
index 59ac5ab..3b63ab3 100644 (file)
@@ -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)