[nautilus] file-operations: ignore ALREADY_MOUNTED errors when mounting



commit c0e6ac365cd4d4d4add0db1edf6f7506bd85e57f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 9 00:33:39 2011 -0400

    file-operations: ignore ALREADY_MOUNTED errors when mounting
    
    Don't spawn an error dialog in this case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=579645

 libnautilus-private/nautilus-file-operations.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 8d73213..c47553c 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -2298,7 +2298,8 @@ volume_mount_cb (GObject *source_object,
 
 	error = NULL;
 	if (!g_volume_mount_finish (G_VOLUME (source_object), res, &error)) {
-		if (error->code != G_IO_ERROR_FAILED_HANDLED) {
+		if (error->code != G_IO_ERROR_FAILED_HANDLED &&
+                    error->code != G_IO_ERROR_ALREADY_MOUNTED) {
 			name = g_volume_get_name (G_VOLUME (source_object));
 			primary = g_strdup_printf (_("Unable to mount %s"), name);
 			g_free (name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]