[nautilus/gnome-3-0] window: don't avoid same-uri reloads for the desktop



commit 4fd541cfee6d0c3e8b2cc022684d37b490c3324f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 6 12:23:57 2011 -0400

    window: don't avoid same-uri reloads for the desktop
    
    Otherwise it will not reload when toggling desktop-is-home-dir.

 src/nautilus-window-manage-views.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 74ca593..10a57ac 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -540,8 +540,9 @@ nautilus_window_slot_open_location_full (NautilusWindowSlot *slot,
 		}
 	}
 
-        if ((target_window == window && target_slot == slot &&
-	     old_location && g_file_equal (old_location, location))) {
+        if (target_window == window && target_slot == slot &&
+	    old_location && g_file_equal (old_location, location) &&
+	    !is_desktop) {
 
 		if (callback != NULL) {
 			callback (window, NULL, user_data);



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