Commit 2a5482a6 authored by David Edmundson's avatar David Edmundson
Browse files

Flush process cache after fetching a CGroup's PIDs

The process cache turns a PID into a KSysguard::Process* to save lookups
in each data fetch.

Once we update the applications pids this needs resetting.

BUG: 435063
parent 8cd7d7f6
......@@ -433,6 +433,7 @@ void CGroupDataModel::update(CGroup *node)
auto row = d->m_cGroups.indexOf(node);
if (row >= 0) {
d->m_cGroups[row]->setPids(pids);
d->m_processMap.remove(d->m_cGroups[row]);
Q_EMIT dataChanged(index(row, 0, QModelIndex()), index(row, columnCount()-1, QModelIndex()));
}
});
......
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