Make the Delete key delete history entries again
This commit is contained in:
parent
1a236a3800
commit
a90dc507ff
1 changed files with 2 additions and 5 deletions
|
@ -768,13 +768,10 @@ midori_history_key_release_event_cb (GtkWidget* widget,
|
||||||
if (katze_tree_view_get_selected_iter (GTK_TREE_VIEW (widget), &model, &iter))
|
if (katze_tree_view_get_selected_iter (GTK_TREE_VIEW (widget), &model, &iter))
|
||||||
{
|
{
|
||||||
KatzeItem* item;
|
KatzeItem* item;
|
||||||
KatzeArray* parent;
|
|
||||||
|
|
||||||
gtk_tree_model_get (model, &iter, 0, &item, -1);
|
gtk_tree_model_get (model, &iter, 0, &item, -1);
|
||||||
|
midori_history_remove_item_from_db (history, item);
|
||||||
parent = katze_item_get_parent (item);
|
gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);
|
||||||
katze_array_remove_item (parent, item);
|
|
||||||
|
|
||||||
g_object_unref (item);
|
g_object_unref (item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue