Preliminary fix for crash after removing a bookmark
This commit is contained in:
parent
052bd7eeda
commit
31fa4004ae
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
#include "midori-addons.h"
|
#include "midori-addons.h"
|
||||||
#include "midori-console.h"
|
#include "midori-console.h"
|
||||||
#include "midori-searchentry.h"
|
#include "midori-searchentry.h"
|
||||||
|
#include "compat.h"
|
||||||
|
|
||||||
#if GLIB_CHECK_VERSION (2, 16, 0)
|
#if GLIB_CHECK_VERSION (2, 16, 0)
|
||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
|
@ -2602,6 +2603,8 @@ _action_bookmark_delete_activate (GtkAction* action,
|
||||||
gtk_tree_model_get (model, &iter, 0, &item, -1);
|
gtk_tree_model_get (model, &iter, 0, &item, -1);
|
||||||
KatzeXbelItem* parent = katze_xbel_item_get_parent (item);
|
KatzeXbelItem* parent = katze_xbel_item_get_parent (item);
|
||||||
katze_xbel_folder_remove_item (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);
|
katze_xbel_item_unref (item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue