[nautilus] files-view: don't check for empty states in destruction
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: don't check for empty states in destruction
- Date: Thu, 14 Apr 2016 15:54:02 +0000 (UTC)
commit 427049107adeb6e1c94e5080281f3019c833f933
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Apr 14 13:41:33 2016 +0200
files-view: don't check for empty states in destruction
If we do we are going to access a NULL model.
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 dc2a519..8e12d09 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]