summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 6aac2ba1e..b795a6df8 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -6149,6 +6149,11 @@ drive_mounted_callback (gboolean succeeded,
gpointer data)
{
if (!succeeded) {
+ if (*error == 0 &&
+ detailed_error != NULL && *detailed_error == 0) {
+ /* This means the mount command displays its own errors */
+ return;
+ }
eel_show_error_dialog_with_details (error, NULL,
detailed_error, NULL);
}
@@ -8175,9 +8180,14 @@ activation_drive_mounted_callback (gboolean succeeded,
parameters->mount_success &= succeeded;
if (!succeeded && !parameters->cancelled) {
- eel_show_error_dialog_with_details (error, NULL,
- detailed_error,
- NULL);
+ if (*error == 0 &&
+ detailed_error != NULL && *detailed_error == 0) {
+ /* This means the mount command displays its own errors */
+ } else {
+ eel_show_error_dialog_with_details (error, NULL,
+ detailed_error,
+ NULL);
+ }
}
if (--parameters->pending_mounts > 0) {