From: Alexander Butenko Date: Tue, 3 May 2011 06:08:58 +0000 (-0400) Subject: Fix crash on url removal from location bar X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd4cc270ca3dc88cb1476f7e5c483382e45126a;p=midori Fix crash on url removal from location bar --- 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);