From 8cd4cc270ca3dc88cb1476f7e5c483382e45126a Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Tue, 3 May 2011 02:08:58 -0400 Subject: [PATCH] Fix crash on url removal from location bar --- midori/midori-locationaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 36c4baec..968af2f8 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -926,7 +926,7 @@ midori_location_action_key_press_event_cb (GtkEntry* entry, selected = MIN (selected + 14, matches -1); else if (event->keyval == GDK_Page_Up) selected = MAX (selected - 14, 0); - else + else if (event->keyval != GDK_KP_Delete && event->keyval != GDK_Delete) g_assert_not_reached (); path = gtk_tree_path_new_from_indices (selected, -1); -- 2.39.5