Fix a bug with music search that didn't show the item's parent when it's being searched for
This commit is contained in:
parent
d8857aa2e4
commit
1e4f8fc2ac
@ -1211,6 +1211,8 @@ void Courtroom::list_music()
|
||||
QList<QTreeWidgetItem*> clist = ui_music_list->findItems(ui_music_search->text(), Qt::MatchContains|Qt::MatchRecursive, 0);
|
||||
foreach(QTreeWidgetItem* item, clist)
|
||||
{
|
||||
if (item->parent() != nullptr) //So the category shows up too
|
||||
item->parent()->setHidden(false);
|
||||
item->setHidden(false);
|
||||
}
|
||||
ui_music_list->expandAll();
|
||||
|
Loading…
Reference in New Issue
Block a user