Fix a warning on startup when no search engine is available

This commit is contained in:
Christian Dywan 2008-06-22 12:44:31 +02:00
parent bec502534c
commit 282368ff81

View file

@ -3349,6 +3349,7 @@ midori_browser_set_property (GObject* object,
&last_web_search, NULL); &last_web_search, NULL);
web_item = midori_web_list_get_nth_item (browser->search_engines, web_item = midori_web_list_get_nth_item (browser->search_engines,
last_web_search); last_web_search);
if (web_item)
g_object_set (browser->search, "current-item", web_item, NULL); g_object_set (browser->search, "current-item", web_item, NULL);
} }
break; break;