[nautilus] On view selection failure, reload the right window



commit a6b53ce4d5b811c854ef8987d1bf6af7ab355b68
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Dec 16 14:38:17 2009 +0100

    On view selection failure, reload the right window

 src/nautilus-window-manage-views.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index b0b1e6a..0a3dd23 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1148,13 +1148,13 @@ got_file_info_for_view_selection_callback (NautilusFile *file,
 
 				if (!nautilus_is_root_directory (location)) {
 					if (!nautilus_is_home_directory (location)) {	
-						nautilus_window_slot_go_home (NAUTILUS_WINDOW (window)->details->active_pane->active_slot, FALSE);
+						nautilus_window_slot_go_home (slot, FALSE);
 					} else {
 						GFile *root;
 
 						root = g_file_new_for_path ("/");
 						/* the last fallback is to go to a known place that can't be deleted! */
-						nautilus_window_slot_go_to (NAUTILUS_WINDOW (window)->details->active_pane->active_slot, location, FALSE);
+						nautilus_window_slot_go_to (slot, location, FALSE);
 						g_object_unref (root);
 					}
 				} else {



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