From 61e51c1991c1c0c3b8293d4c8722264c3cd60a64 Mon Sep 17 00:00:00 2001 From: Daniel Michalik Date: Mon, 7 Dec 2009 20:13:31 +0100 Subject: [PATCH] Update default search engine if the according search engine is modified --- midori/midori-searchaction.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index e324b198..b469ce54 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -1031,6 +1031,10 @@ midori_search_action_get_editor (MidoriSearchAction* search_action, if (new_engine) katze_array_add_item (search_action->search_engines, item); + /* If it isn't a new search engine but the old default one, + we need to update the default search engine after editing it. */ + else if (item == midori_search_action_get_default_item (search_action)) + midori_search_action_set_default_item (search_action, item); } gtk_widget_destroy (dialog); }