summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-03-07 16:25:19 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-03-07 16:25:19 +0000
commitbc6e05ff0ec3945c1cf7ff9bf211dbc070c913bb (patch)
tree4a322556a9c43c5f3a369bf2e587217d5605fe27
parentdf616b94444e5f080835576496002b5b85991a03 (diff)
downloadnautilus-bc6e05ff0ec3945c1cf7ff9bf211dbc070c913bb.tar.gz
Don't show error dialog if mount error is "".
2006-03-07 Alexander Larsson <alexl@redhat.com> * src/file-manager/fm-directory-view.c: (drive_mounted_callback), (activation_drive_mounted_callback): Don't show error dialog if mount error is "".
-rw-r--r--ChangeLog6
-rw-r--r--src/file-manager/fm-directory-view.c16
2 files changed, 19 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 41eeb75e6..b151f64d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-07 Alexander Larsson <alexl@redhat.com>
+
+ * src/file-manager/fm-directory-view.c: (drive_mounted_callback),
+ (activation_drive_mounted_callback):
+ Don't show error dialog if mount error is "".
+
2006-03-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-canvas-item.c:
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) {