[Xfce4-commits] <midori:master> Update default search engine if the according search engine is modified
Christian Dywan
noreply at xfce.org
Mon Dec 7 20:40:02 CET 2009
Updating branch refs/heads/master
to 61e51c1991c1c0c3b8293d4c8722264c3cd60a64 (commit)
from fadd0f31c2cd3e027870a3c0c931c864ad4d84b7 (commit)
commit 61e51c1991c1c0c3b8293d4c8722264c3cd60a64
Author: Daniel Michalik <dev at blackamp.de>
Date: Mon Dec 7 20:13:31 2009 +0100
Update default search engine if the according search engine is modified
midori/midori-searchaction.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c
index e324b19..b469ce5 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);
}
More information about the Xfce4-commits
mailing list