diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-01-13 20:33:07 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-01-15 18:03:14 +0100 |
commit | 2d5ea4d4379907e41afb36b86d3d3befb24ab542 (patch) | |
tree | 7ef727eaabab1d3f57d86477d81a756c87b006ea | |
parent | 45db87034e65afe7470d0a2a8ae885b5d20196a4 (diff) | |
download | nautilus-2d5ea4d4379907e41afb36b86d3d3befb24ab542.tar.gz |
files-view: don't remove model when stoping view
So when searching, window-slot is able to get the location.
https://bugzilla.gnome.org/show_bug.cgi?id=759717
-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 |