From: Daniel Michalik Date: Mon, 7 Dec 2009 19:13:31 +0000 (+0100) Subject: Update default search engine if the according search engine is modified X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e51c1991c1c0c3b8293d4c8722264c3cd60a64;p=midori Update default search engine if the according search engine is modified --- 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); }