From: Christian Dywan Date: Sat, 21 Feb 2009 23:13:00 +0000 (+0100) Subject: Don't try to setup search engines when unsetting X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3baab132b96e2753cdc0b61b9068d11fdeccd64c;p=midori Don't try to setup search engines when unsetting --- 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",