Fix a warning on startup when no search engine is available
This commit is contained in:
parent
bec502534c
commit
282368ff81
1 changed files with 2 additions and 1 deletions
|
@ -3349,7 +3349,8 @@ 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);
|
||||||
g_object_set (browser->search, "current-item", web_item, NULL);
|
if (web_item)
|
||||||
|
g_object_set (browser->search, "current-item", web_item, NULL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue