Commit 8f9946fa authored by David Redondo's avatar David Redondo 🏎
Browse files

Only invalidate the filter once

setFilterKeyColumn internally invalidates the filter, meaning we did
it thrice here.
parent d8a4138d
......@@ -172,7 +172,7 @@ void ProcessSortFilterModel::findColumns()
{
m_uidColumn = -1;
m_pidColumn = -1;
setFilterKeyColumn(-1);
int nameColumn = -1;
auto source = sourceModel();
......@@ -183,9 +183,8 @@ void ProcessSortFilterModel::findColumns()
} else if (attribute == QStringLiteral("pid")) {
m_pidColumn = column;
} else if (attribute == QStringLiteral("name")) {
setFilterKeyColumn(column);
nameColumn = column;
}
}
invalidateFilter();
setFilterKeyColumn(nameColumn);
}
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