Commit 6d727895 authored by David Edmundson's avatar David Edmundson
Browse files

Fix dataChanged emitted when PIDs are loaded

When our cgroup PIDs are changed, potentially all columns are changed.
The existing dataChanged only handled the first column


(cherry picked from commit 63710a48)
parent f73d5e3b
......@@ -419,7 +419,7 @@ void CGroupDataModel::update(CGroup *node)
// This may trigger some dataChanged
node->requestPids(this, [this, node]() {
auto row = d->m_cGroups.indexOf(node);
Q_EMIT dataChanged(index(row, 0, QModelIndex()), index(row, 0, QModelIndex()));
Q_EMIT dataChanged(index(row, 0, QModelIndex()), index(row, columnCount()-1, QModelIndex()));
});
const auto entries = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
......
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