From aef9faa33fff7cfd796989cf0627181a3dbb5cec Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Wed, 2 Feb 2022 11:13:29 +0000 Subject: [PATCH] Fix #858: Geeqie occasionally forgets that Use Rubbish bin should be enabled https://github.com/BestImageViewer/geeqie/issues/858 c_options not set. --- src/preferences.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/preferences.c b/src/preferences.c index 1818c4b8..831e9de4 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -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); -- 2.20.1