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

fix filtering when navigating directory trees

parent 49340251
......@@ -57,7 +57,7 @@ bool FileBrowserProxyModel::filterAcceptsRow(int source_row, const QModelIndex &
for (int column = 0, columnCount = sourceModel()->columnCount(source_parent); column < columnCount; ++column) {
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()) {
result = true;
......
Markdown is supported
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