mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix of #4441
SearchDialog: Select first item in the lit, if search_list has at least one item
This commit is contained in:
@@ -617,7 +617,8 @@ 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
|
||||||
|
if (search_list_model->GetCount() > 0)
|
||||||
search_list->Select(search_list_model->GetItem(0));
|
search_list->Select(search_list_model->GetItem(0));
|
||||||
prevent_list_events = false;
|
prevent_list_events = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user