From 3baab132b96e2753cdc0b61b9068d11fdeccd64c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 22 Feb 2009 00:13:00 +0100 Subject: [PATCH] Don't try to setup search engines when unsetting --- midori/midori-searchaction.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index 6b71f1ff..b789981b 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -648,6 +648,8 @@ midori_search_action_set_search_engines (MidoriSearchAction* search_action, if (search_engines) g_object_ref (search_engines); katze_object_assign (search_action->search_engines, search_engines); + if (!search_engines) + return; g_object_connect (search_engines, "signal-after::add-item",