diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-01-13 20:33:07 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-01-18 11:01:43 +0100 |
commit | 45eebc268768e8f4a1b14a714a69056b16c6daa2 (patch) | |
tree | a506b0c32ada83781fba90ca20f0d1c2d011650b | |
parent | 2e7da98742faf7ae40b7f953c5daf4cba8ecd384 (diff) | |
download | nautilus-45eebc268768e8f4a1b14a714a69056b16c6daa2.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 bb980912a..a35a8215b 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -2818,6 +2818,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); @@ -7215,10 +7220,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 |