]> spindle.queued.net Git - midori/commitdiff
Preliminary fix for crash after removing a bookmark
authorEnrico Tröger <enrico.troeger@uvena.de>
Wed, 16 Jul 2008 12:24:30 +0000 (14:24 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 16 Jul 2008 12:24:30 +0000 (14:24 +0200)
midori/midori-browser.c

index 44324231e258f101f9eaf06e0ab5fc99f0f95716..50a1c20aad2ec46c2e19f09bd2cff3819444532c 100644 (file)
@@ -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 <gio/gio.h>
@@ -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);
         }
     }