diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-01-13 20:33:07 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-01-14 17:04:30 +0100 |
commit | c97dc76083c9db2bece1e852048195dd2719a78c (patch) | |
tree | 64e909c321f625e143c0d4e0db85e5d00d276317 | |
parent | cde28523d34d4dd60fd40d91b3c42cb4215c87ae (diff) | |
download | nautilus-c97dc76083c9db2bece1e852048195dd2719a78c.tar.gz |
files-view: don't remove model when stoping view
So when searching, window-slot is able to get the location.
-rw-r--r-- | src/nautilus-files-view.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 06bd73b39..af2c6543e 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -2860,6 +2860,11 @@ nautilus_files_view_destroy (GtkWidget *object) view->details->in_destruction = TRUE; nautilus_files_view_stop_loading (view); + if (view->details->model) { + nautilus_directory_unref (view->details->model); + view->details->model = NULL; + } + for (node = view->details->scripts_directory_list; node != NULL; node = next) { next = node->next; remove_directory_from_scripts_directory_list (view, node->data); @@ -7373,10 +7378,6 @@ nautilus_files_view_stop_loading (NautilusFilesView *view) done_loading (view, FALSE); disconnect_model_handlers (view); - if (view->details->model) { - nautilus_directory_unref (view->details->model); - view->details->model = NULL; - } } gboolean |