[nautilus] Don't reload while a reload is ongoing



commit 86d3cbc96fcdb6034b6fceb82685bb5321276ee1
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Sep 5 03:52:25 2012 -0400

    Don't reload while a reload is ongoing
    
    This prevents the pending selection from getting stepped on by
    another reload request.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=608831

 src/nautilus-window-manage-views.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index b9a4630..623e626 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1823,6 +1823,13 @@ nautilus_window_slot_reload (NautilusWindowSlot *slot)
 		return;
 	}
 
+	if (slot->pending_location != NULL
+	    || slot->content_view == NULL
+	    || nautilus_view_get_loading (slot->content_view)) {
+		/* there is a reload in flight */
+		return;
+	}
+
 	/* peek_slot_field (window, location) can be free'd during the processing
 	 * of begin_location_change, so make a copy
 	 */



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