[nautilus] list-view: check for model != NULL before unsetting the highlight
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: check for model != NULL before unsetting the highlight
- Date: Mon, 20 Sep 2010 14:50:27 +0000 (UTC)
commit 6d3398968d9f2520a4b6f4a08e0f4ae65e2207ab
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Sep 20 15:02:02 2010 +0200
list-view: check for model != NULL before unsetting the highlight
The model could be NULL there as a result of the view being previously
disposed.
src/file-manager/fm-list-view.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 2ba16a1..68b7d93 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -2974,6 +2974,13 @@ list_view_notify_clipboard_info (NautilusClipboardMonitor *monitor,
NautilusClipboardInfo *info,
FMListView *view)
{
+ /* this could be called as a result of _end_loading() being
+ * called after _dispose(), where the model is cleared.
+ */
+ if (view->details->model == NULL) {
+ return;
+ }
+
if (info != NULL && info->cut) {
fm_list_model_set_highlight_for_files (view->details->model, info->files);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]