]> spindle.queued.net Git - midori/commitdiff
Fix crash on url removal from location bar
authorAlexander Butenko <a.butenka@gmail.com>
Tue, 3 May 2011 06:08:58 +0000 (02:08 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 4 May 2011 17:31:21 +0000 (19:31 +0200)
midori/midori-locationaction.c

index 36c4baecd4f7dd721eaf9c76ee9ca04b6ff1958a..968af2f8aa142b67fda8673123fee85add2219d4 100644 (file)
@@ -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);