[nautilus] file-operations: Fix regression for unmount empty trash
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: Fix regression for unmount empty trash
- Date: Mon, 2 May 2022 10:22:24 +0000 (UTC)
commit eb00e984ce496191f06ef3a5305cbc25c20680bc
Author: Corey Berla <corey berla me>
Date: Mon Apr 18 10:22:08 2022 -0700
file-operations: Fix regression for unmount empty trash
The new call back empty_trash_prompt_cb as part of ed23b17a50da5d86339cc5930b62814eda1416ff
leaves off a catch all to do_unmount() which would only be called if
the user selects "Do not Empty Trash" when unmounting a volume.
Add a clause to check for GTK_RESPONSE_REJECT with call to do_unmount().
src/nautilus-file-operations.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index f07d5ef10..c6906bf29 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -3077,6 +3077,10 @@ empty_trash_prompt_cb (GtkDialog *dialog,
unmount_data_free (data);
}
+ else if (response_id == GTK_RESPONSE_REJECT)
+ {
+ do_unmount (data);
+ }
gtk_window_destroy (GTK_WINDOW (dialog));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]