Update default search engine if the according search engine is modified

This commit is contained in:
Daniel Michalik 2009-12-07 20:13:31 +01:00 committed by Christian Dywan
parent fadd0f31c2
commit 61e51c1991

View file

@ -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);
}