diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-04-14 13:41:33 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-14 17:53:31 +0200 |
commit | 427049107adeb6e1c94e5080281f3019c833f933 (patch) | |
tree | 233baf85f7a55905a39003651448463404ab1609 | |
parent | d251a03d3bd3892e9a6eb65b60175214dcaaf823 (diff) | |
download | nautilus-427049107adeb6e1c94e5080281f3019c833f933.tar.gz |
files-view: don't check for empty states in destruction
If we do we are going to access a NULL model.
-rw-r--r-- | src/nautilus-files-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index dc2a519c8..8e12d0901 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -3179,7 +3179,9 @@ done_loading (NautilusFilesView *view, g_signal_emit (view, signals[END_LOADING], 0, all_files_seen); g_object_notify (G_OBJECT (view), "is-loading"); - nautilus_files_view_check_empty_states (view); + if (!view->details->in_destruction) { + nautilus_files_view_check_empty_states (view); + } nautilus_profile_end (NULL); } |