summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-07-23 21:15:55 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-07-23 21:15:55 +0200
commit22ab00c35f782d24b2cf561ba81964f0e4e19b63 (patch)
treefb3ace4604958608bcaaeb77ce58951c6d959a17
parent69b5caad316bd39d4f13010e1dcfe7296f69ff68 (diff)
downloadnautilus-22ab00c35f782d24b2cf561ba81964f0e4e19b63.tar.gz
window-slot: fix stopping the view if no view
The first time we create open a location in the slot there is no view at all...
-rw-r--r--src/nautilus-window-slot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index d0781e947..43d50a260 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -944,7 +944,9 @@ begin_location_change (NautilusWindowSlot *slot,
nautilus_window_slot_disconnect_content_view (slot);
/* We are going to change the location, so make sure we stop any loading
* or searching of the previous view, so we avoid to be slow */
- nautilus_view_stop_loading (slot->details->content_view);
+ if (slot->details->content_view) {
+ nautilus_view_stop_loading (slot->details->content_view);
+ }
/* If there is no new selection and the new location is
* a (grand)parent of the old location then we automatically