summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-12-31 01:10:29 -0500
committermonsta <[email protected]>2018-04-13 14:24:56 +0300
commit6f6c61f87fae560a28aa07d543c232c951f99f0d (patch)
tree4302d94e753cda10ed338937eabca7231d076981
parentaad34aac611a60afe5935f93193d56d6c39a212c (diff)
downloadcaja-6f6c61f87fae560a28aa07d543c232c951f99f0d.tar.bz2
caja-6f6c61f87fae560a28aa07d543c232c951f99f0d.tar.xz
eject: Do not show "safe to remove" notification if drive fails to unmount
-rw-r--r--libcaja-private/caja-file-operations.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index ad525d2d..30602bc1 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -2134,7 +2134,10 @@ unmount_mount_callback (GObject *source_object,
if (data->eject) {
unmounted = g_mount_eject_with_operation_finish (G_MOUNT (source_object),
res, &error);
- caja_application_notify_unmount_show ("It is now safe to remove the drive");
+ if ((!error) || (unmounted == TRUE)){
+ caja_application_notify_unmount_show ("It is now safe to remove the drive");
+ }
+
} else {
unmounted = g_mount_unmount_with_operation_finish (G_MOUNT (source_object),
res, &error);