Only set search in the browser if we have any search engines
This fixes the test case which broke when we made settings obligatory.
This commit is contained in:
parent
f14b711901
commit
3253f1605a
1 changed files with 15 additions and 12 deletions
|
@ -6446,6 +6446,8 @@ midori_browser_set_property (GObject* object,
|
||||||
_action_by_name (browser, "Search")), browser->search_engines);
|
_action_by_name (browser, "Search")), browser->search_engines);
|
||||||
/* FIXME: Connect to updates */
|
/* FIXME: Connect to updates */
|
||||||
|
|
||||||
|
if (browser->search_engines)
|
||||||
|
{
|
||||||
g_object_get (browser->settings, "last-web-search", &last_web_search, NULL);
|
g_object_get (browser->settings, "last-web-search", &last_web_search, NULL);
|
||||||
item = katze_array_get_nth_item (browser->search_engines, last_web_search);
|
item = katze_array_get_nth_item (browser->search_engines, last_web_search);
|
||||||
midori_search_action_set_current_item (MIDORI_SEARCH_ACTION (
|
midori_search_action_set_current_item (MIDORI_SEARCH_ACTION (
|
||||||
|
@ -6459,6 +6461,7 @@ midori_browser_set_property (GObject* object,
|
||||||
_action_by_name (browser, "Search")), item);
|
_action_by_name (browser, "Search")), item);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PROP_HISTORY:
|
case PROP_HISTORY:
|
||||||
|
|
Loading…
Reference in a new issue