Fix of #4441
SearchDialog: Select first item in the lit, if search_list has at least one item
This commit is contained in:
parent
990bfc0d76
commit
53b6c93ceb
1 changed files with 3 additions and 2 deletions
|
@ -617,8 +617,9 @@ void SearchDialog::update_list()
|
||||||
for (const FoundOption& item : filters)
|
for (const FoundOption& item : filters)
|
||||||
search_list_model->Prepend(item.label);
|
search_list_model->Prepend(item.label);
|
||||||
|
|
||||||
// select first item
|
// select first item, if search_list
|
||||||
search_list->Select(search_list_model->GetItem(0));
|
if (search_list_model->GetCount() > 0)
|
||||||
|
search_list->Select(search_list_model->GetItem(0));
|
||||||
prevent_list_events = false;
|
prevent_list_events = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue