Fix to apply to new behavior of foldersel_set_tree. See 247a452
authorMichael Rasmussen <mir@datanom.net>
Sat, 2 Aug 2014 13:38:58 +0000 (15:38 +0200)
committerMichael Rasmussen <mir@datanom.net>
Sat, 2 Aug 2014 13:38:58 +0000 (15:38 +0200)
src/imap_gtk.c
src/mh_gtk.c
src/plugins/mailmbox/plugin_gtk.c
src/summaryview.c

index dcda56e2660058f0a615de7382dbdb226f738234..abbb8058565c26b732722e895e6f1f4f94d0005d 100644 (file)
@@ -315,7 +315,7 @@ static void move_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != imap_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, TRUE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, TRUE);
        if (!to_folder)
                return;
        
@@ -331,7 +331,7 @@ static void copy_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != imap_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, TRUE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, TRUE);
        if (!to_folder)
                return;
        
index 064fac4e2ba2f22b6f2930ab84333d6ab36f0d96..81bf4c6157608e79b20af21d7132319c1c0aee0b 100644 (file)
@@ -297,7 +297,7 @@ static void move_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != mh_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, TRUE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, TRUE);
        if (!to_folder)
                return;
        
@@ -313,7 +313,7 @@ static void copy_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != mh_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, TRUE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, TRUE);
        if (!to_folder)
                return;
        
index 9f0e4b8e9203c24c9d65153aa06feafd52c46abf..e6b30f55524a1df624caa74a5829bf80fe1ba459 100644 (file)
@@ -362,7 +362,7 @@ static void move_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != claws_mailmbox_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, FALSE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, FALSE);
        if (!to_folder)
                return;
 
@@ -378,7 +378,7 @@ static void copy_folder_cb(GtkAction *action, gpointer data)
        if (!from_folder || from_folder->folder->klass != claws_mailmbox_get_class())
                return;
 
-       to_folder = foldersel_folder_sel(from_folder->folder, FOLDER_SEL_MOVE, NULL, FALSE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, FALSE);
        if (!to_folder)
                return;
 
index 4986a65a1c33545aab016746fd88614e63a2c99f..dacbc66bef49a7ee79a95a84edee50b1bff4a47f 100644 (file)
@@ -4602,8 +4602,7 @@ void summary_move_to(SummaryView *summaryview)
        if (!summaryview->folder_item ||
            FOLDER_TYPE(summaryview->folder_item->folder) == F_NEWS) return;
 
-       to_folder = foldersel_folder_sel(summaryview->folder_item->folder,
-                                        FOLDER_SEL_MOVE, NULL, FALSE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL, FALSE);
        summary_move_selected_to(summaryview, to_folder);
 }
 
@@ -4683,8 +4682,7 @@ void summary_copy_to(SummaryView *summaryview)
 
        if (!summaryview->folder_item) return;
 
-       to_folder = foldersel_folder_sel(summaryview->folder_item->folder,
-                                        FOLDER_SEL_COPY, NULL, FALSE);
+       to_folder = foldersel_folder_sel(NULL, FOLDER_SEL_COPY, NULL, FALSE);
        summary_copy_selected_to(summaryview, to_folder);
 }