Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
700cb854
Commit
700cb854
authored
May 14, 2020
by
Matthieu Gallien
🎵
Browse files
fix filtering when navigating directory trees
parent
49340251
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/filebrowserproxymodel.cpp
View file @
700cb854
...
...
@@ -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
::
Title
Role
).
toString
();
const
auto
&
nameValue
=
sourceModel
()
->
data
(
currentIndex
,
Qt
::
Display
Role
).
toString
();
if
(
mFilterExpression
.
match
(
nameValue
).
hasMatch
())
{
result
=
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment