diff options
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.c')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c index fc019d452..0101b81b0 100644 --- a/libnautilus-private/nautilus-file-operations.c +++ b/libnautilus-private/nautilus-file-operations.c @@ -35,6 +35,7 @@ #include <libnautilus-extensions/nautilus-file-changes-queue.h> #include <libnautilus-extensions/nautilus-file-utilities.h> #include <libnautilus-extensions/nautilus-glib-extensions.h> +#include <libnautilus-extensions/nautilus-global-preferences.h> #include <libnautilus-extensions/nautilus-stock-dialogs.h> #include "fm-directory-view.h" @@ -1424,6 +1425,11 @@ confirm_empty_trash (GtkWidget *parent_view) GnomeDialog *dialog; GtkWindow *parent_window; + /* Just Say Yes if the preference says not to confirm. */ + if (!nautilus_preferences_get_boolean (NAUTILUS_PREFERENCES_CONFIRM_TRASH, TRUE)) { + return TRUE; + } + parent_window = GTK_WINDOW (gtk_widget_get_toplevel (parent_view)); dialog = nautilus_yes_no_dialog ( |