Blame SOURCES/fix-crash.patch

41e610
From f82dcfe99dafc9b6eac331bcf22662c9254f8a40 Mon Sep 17 00:00:00 2001
41e610
From: Edward Sheldrake <ejsheldrake@gmail.com>
41e610
Date: Wed, 11 Apr 2012 08:27:16 +0100
41e610
Subject: [PATCH] Fix assertion failed crash
41e610
41e610
Fix "assertion failed: (last_slash != NULL)" crash while navigating the
41e610
left tree view, fixed by having the model for the right list view emit
41e610
all the row deleted signals before deleting any of its data.
41e610
41e610
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=670586
41e610
---
41e610
 src/gconf-list-model.c |    7 +++++--
41e610
 1 file changed, 5 insertions(+), 2 deletions(-)
41e610
41e610
diff --git a/src/gconf-list-model.c b/src/gconf-list-model.c
41e610
index 27e1af6..4fc60f8 100644
41e610
--- a/src/gconf-list-model.c
41e610
+++ b/src/gconf-list-model.c
41e610
@@ -133,11 +133,14 @@ gconf_list_model_set_root_path (GConfListModel *model, const gchar *root_path)
41e610
 
41e610
 	if (model->root_path != NULL) {
41e610
 		for (list = model->values; list; list = list->next) {
41e610
+			model->stamp++;
41e610
+			gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
41e610
+		}
41e610
+
41e610
+		for (list = model->values; list; list = list->next) {
41e610
 			GConfEntry *entry = list->data;
41e610
 
41e610
 			g_hash_table_remove (model->key_hash, gconf_entry_get_key (entry));
41e610
-			model->stamp++;
41e610
-			gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
41e610
 
41e610
 			gconf_entry_unref (entry);
41e610
 		}
41e610
-- 
41e610
1.7.9.6
41e610