don't save 'last_opened_folder' value if 'goto_last_folder_on_startup' is not set
authorPaul <paul@claws-mail.org>
Fri, 15 Nov 2019 11:54:26 +0000 (11:54 +0000)
committerPaul <paul@claws-mail.org>
Fri, 15 Nov 2019 11:54:26 +0000 (11:54 +0000)
Based on patch by Olaf Hering

src/main.c

index deb5e13..91ad338 100644 (file)
@@ -1693,6 +1693,7 @@ static void exit_claws(MainWindow *mainwin)
                if (prefs_common.last_opened_folder != NULL)
                        g_free(prefs_common.last_opened_folder);
                prefs_common.last_opened_folder =
+                       !prefs_common.goto_last_folder_on_startup ? NULL :
                        folder_item_get_identifier(item);
        }