Commit 700cb854 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix filtering when navigating directory trees

parent 49340251
...@@ -57,7 +57,7 @@ bool FileBrowserProxyModel::filterAcceptsRow(int source_row, const QModelIndex & ...@@ -57,7 +57,7 @@ bool FileBrowserProxyModel::filterAcceptsRow(int source_row, const QModelIndex &
for (int column = 0, columnCount = sourceModel()->columnCount(source_parent); column < columnCount; ++column) { for (int column = 0, columnCount = sourceModel()->columnCount(source_parent); column < columnCount; ++column) {
auto currentIndex = sourceModel()->index(source_row, column, source_parent); auto currentIndex = sourceModel()->index(source_row, column, source_parent);
const auto &nameValue = sourceModel()->data(currentIndex, DataTypes::TitleRole).toString(); const auto &nameValue = sourceModel()->data(currentIndex, Qt::DisplayRole).toString();
if (mFilterExpression.match(nameValue).hasMatch()) { if (mFilterExpression.match(nameValue).hasMatch()) {
result = true; result = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment