Ensure all nodes are shown when filter is cleared
This commit is contained in:
parent
3da938eac2
commit
ae71d24f6e
|
@ -367,10 +367,11 @@ void PlaylistListContainer::SearchTextEdited(const QString& text) {
|
|||
QRegExp regexp(text);
|
||||
regexp.setCaseSensitivity(Qt::CaseInsensitive);
|
||||
|
||||
proxy_->setFilterRegExp(regexp);
|
||||
|
||||
if(regexp.isEmpty()) {
|
||||
ui_->tree->collapseAll();
|
||||
} else {
|
||||
proxy_->setFilterRegExp(regexp);
|
||||
proxy_->refreshExpanded(ui_->tree);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue