]> spindle.queued.net Git - midori/commitdiff
Don't try to setup search engines when unsetting
authorChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:13:00 +0000 (00:13 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:13:00 +0000 (00:13 +0100)
midori/midori-searchaction.c

index 6b71f1ff31425611943dd49929859992bff446ca..b789981bfbd9d6b0704d7d3da9ddf92a733d9c0b 100644 (file)
@@ -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",