Fix to apply to new behavior of foldersel_set_tree. See 247a452
[claws.git] / src / imap_gtk.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;