From c4af24245408eb44cd019d9bcbf6131d9b146328 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Tue, 17 Jan 2017 15:31:34 +0000 Subject: [PATCH] Don't reload while a reload is ongoing --- src/nemo-window-manage-views.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nemo-window-manage-views.c b/src/nemo-window-manage-views.c index 7192b5a54..15d816c3b 100644 --- a/src/nemo-window-manage-views.c +++ b/src/nemo-window-manage-views.c @@ -1868,6 +1868,13 @@ nemo_window_slot_reload (NemoWindowSlot *slot) return; } + if (slot->pending_location != NULL + || slot->content_view == NULL + || nemo_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 */