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
Plasma
Plasma System Monitor
Commits
8f9946fa
Commit
8f9946fa
authored
Apr 23, 2021
by
David Redondo
🏎
Browse files
Only invalidate the filter once
setFilterKeyColumn internally invalidates the filter, meaning we did it thrice here.
parent
d8a4138d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/table/ProcessSortFilterModel.cpp
View file @
8f9946fa
...
...
@@ -172,7 +172,7 @@ void ProcessSortFilterModel::findColumns()
{
m_uidColumn
=
-
1
;
m_pidColumn
=
-
1
;
setFilterKey
Column
(
-
1
)
;
int
name
Column
=
-
1
;
auto
source
=
sourceModel
();
...
...
@@ -183,9 +183,8 @@ void ProcessSortFilterModel::findColumns()
}
else
if
(
attribute
==
QStringLiteral
(
"pid"
))
{
m_pidColumn
=
column
;
}
else
if
(
attribute
==
QStringLiteral
(
"name"
))
{
setFilterKey
Column
(
column
)
;
name
Column
=
column
;
}
}
invalidateFilter
();
setFilterKeyColumn
(
nameColumn
);
}
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