[nautilus/gnome-3-20] 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/gnome-3-20] files-view: don't check for empty states in destruction
- Date: Thu, 28 Apr 2016 09:43:12 +0000 (UTC)
commit 86a8396471a45d3a504102e10eefa12a72162616
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 f800e7d..b6fd475 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -3216,7 +3216,9 @@ done_loading (NautilusFilesView *view,
g_signal_emit (view, signals[END_LOADING], 0, all_files_seen);
g_object_notify (G_OBJECT (view), "is-loading");
- check_empty_states (view);
+ if (!view->details->in_destruction) {
+ check_empty_states (view);
+ }
nautilus_profile_end (NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]