Fix #858: Geeqie occasionally forgets that Use Rubbish bin should be enabled
authorColin Clark <colin.clark@cclark.uk>
Wed, 2 Feb 2022 11:13:29 +0000 (11:13 +0000)
committerColin Clark <colin.clark@cclark.uk>
Wed, 2 Feb 2022 11:13:29 +0000 (11:13 +0000)
https://github.com/BestImageViewer/geeqie/issues/858

c_options not set.

src/preferences.c

index 1818c4b..831e9de 100644 (file)
@@ -3535,6 +3535,10 @@ static void config_tab_behavior(GtkWidget *notebook)
        button = pref_button_new(NULL, GTK_STOCK_CLEAR, NULL, FALSE,
                                 G_CALLBACK(safe_delete_clear_cb), NULL);
        gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+
+       c_options->file_ops.no_trash = options->file_ops.no_trash;
+       c_options->file_ops.use_system_trash = options->file_ops.use_system_trash;
+
        pref_radiobutton_new(group, ct_button, _("Use system Trash bin"),
                                        options->file_ops.use_system_trash && !options->file_ops.no_trash, G_CALLBACK(use_system_trash_cb), NULL);