diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-07-23 21:15:55 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-07-23 21:15:55 +0200 |
commit | 22ab00c35f782d24b2cf561ba81964f0e4e19b63 (patch) | |
tree | fb3ace4604958608bcaaeb77ce58951c6d959a17 /src/nautilus-window-slot.c | |
parent | 69b5caad316bd39d4f13010e1dcfe7296f69ff68 (diff) | |
download | nautilus-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...
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 4 |
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 |