mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
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
This commit is contained in:
parent
45db87034e
commit
2d5ea4d437
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue