[nautilus/gnome-2-32: 70/283] Never update icons for remote bookmarks.



commit 6cddc05e08cca1f249eafed4cbb116dfdde5171c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu May 6 19:30:51 2010 +0200

    Never update icons for remote bookmarks.

 libnautilus-private/nautilus-bookmark.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-bookmark.c b/libnautilus-private/nautilus-bookmark.c
index cb2b095..7f63324 100644
--- a/libnautilus-private/nautilus-bookmark.c
+++ b/libnautilus-private/nautilus-bookmark.c
@@ -341,6 +341,11 @@ nautilus_bookmark_update_icon (NautilusBookmark *bookmark)
 		return FALSE;
 	}
 
+	if (!nautilus_file_is_local (bookmark->details->file)) {
+		/* never update icons for remote bookmarks */
+		return FALSE;
+	}
+
 	if (!nautilus_file_is_not_yet_confirmed (bookmark->details->file) &&
 	    nautilus_file_check_if_ready (bookmark->details->file,
 					  NAUTILUS_FILE_ATTRIBUTES_FOR_ICON)) {



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