diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-09-24 00:59:12 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-24 00:59:12 +0300 |
| commit | 1e4f8fc2ac9c1232563875bf83493915bfaaaa48 (patch) | |
| tree | f6e4088d3144c269e71f7c42872f4db56fda1d7c | |
| parent | d8857aa2e48c89a5002f8511ce566df9c557598e (diff) | |
Fix a bug with music search that didn't show the item's parent when it's being searched for
| -rw-r--r-- | src/courtroom.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 8896335e..bdd1f776 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1211,7 +1211,9 @@ void Courtroom::list_music() QList<QTreeWidgetItem*> clist = ui_music_list->findItems(ui_music_search->text(), Qt::MatchContains|Qt::MatchRecursive, 0); foreach(QTreeWidgetItem* item, clist) { - item->setHidden(false); + if (item->parent() != nullptr) //So the category shows up too + item->parent()->setHidden(false); + item->setHidden(false); } ui_music_list->expandAll(); } |
