From 31fa4004ae08afeff6ee6bd1bdafe52e21d85396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 16 Jul 2008 14:24:30 +0200 Subject: [PATCH] Preliminary fix for crash after removing a bookmark --- midori/midori-browser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 44324231..50a1c20a 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -21,6 +21,7 @@ #include "midori-addons.h" #include "midori-console.h" #include "midori-searchentry.h" +#include "compat.h" #if GLIB_CHECK_VERSION (2, 16, 0) #include @@ -2602,6 +2603,8 @@ _action_bookmark_delete_activate (GtkAction* action, gtk_tree_model_get (model, &iter, 0, &item, -1); KatzeXbelItem* parent = katze_xbel_item_get_parent (item); katze_xbel_folder_remove_item (parent, item); + /* This is a preliminary hack, until we fix it properly again */ + gtk_tree_store_remove (GTK_TREE_STORE (model), &iter); katze_xbel_item_unref (item); } }