Allow to disable trash completely
[geeqie.git] / src / rcfile.c
index 99794d5..ae838a1 100644 (file)
@@ -361,6 +361,7 @@ static void write_global_attributes(GString *outstr, gint indent)
        WRITE_NL(); WRITE_BOOL(*options, file_ops.safe_delete_enable);
        WRITE_NL(); WRITE_CHAR(*options, file_ops.safe_delete_path);
        WRITE_NL(); WRITE_INT(*options, file_ops.safe_delete_folder_maxsize);
+       WRITE_NL(); WRITE_BOOL(*options, file_ops.no_trash);
 
        /* Properties dialog Options */
        WRITE_NL(); WRITE_CHAR(*options, properties.tabs_order);
@@ -797,6 +798,7 @@ static gboolean load_global_params(const gchar **attribute_names, const gchar **
                if (READ_BOOL(*options, file_ops.safe_delete_enable)) continue;
                if (READ_CHAR(*options, file_ops.safe_delete_path)) continue;
                if (READ_INT(*options, file_ops.safe_delete_folder_maxsize)) continue;
+               if (READ_BOOL(*options, file_ops.no_trash)) continue;
 
                /* Fullscreen options */
                if (READ_INT(*options, fullscreen.screen)) continue;