always use folder pref for save msg location if set
authorPaul <paul@claws-mail.org>
Thu, 25 Oct 2018 16:08:21 +0000 (17:08 +0100)
committerPaul <paul@claws-mail.org>
Thu, 25 Oct 2018 16:08:21 +0000 (17:08 +0100)
src/compose.c

index 64ec15d21ed34be6412edc98816a526f4bc8bd44..e6d94973a65e3dcd91bcf60618930c83773a708d 100644 (file)
@@ -10137,7 +10137,13 @@ static void account_activated(GtkComboBox *optmenu, gpointer data)
 
        /* Set message save folder */
        compose_set_save_to(compose, NULL);
-       if (account_get_special_folder(compose->account, F_OUTBOX)) {
+       if (compose->folder && compose->folder->prefs && compose->folder->prefs->save_copy_to_folder) {
+               gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compose->savemsg_checkbtn), TRUE);
+               gtk_widget_set_sensitive(GTK_WIDGET(compose->savemsg_combo), TRUE);
+               folderidentifier = folder_item_get_identifier(compose->folder);
+               compose_set_save_to(compose, folderidentifier);
+               g_free(folderidentifier);
+       } else if (account_get_special_folder(compose->account, F_OUTBOX)) {
                if (compose->account->set_sent_folder)
                        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compose->savemsg_checkbtn), TRUE);
                else