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
1 changed files with 2 additions and 1 deletions

View File

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