Commit a2825eb3 authored by Jan Grulich's avatar Jan Grulich
Browse files

Use updateItem() function instead of doing manuall work

parent 2bb496b0
......@@ -611,10 +611,7 @@ void NetworkModel::activeConnectionStateChanged(NetworkManager::ActiveConnection
for (NetworkModelItem *item : m_list.returnItems(NetworkItemsList::ActiveConnection, activePtr->path())) {
item->setConnectionState(state);
item->invalidateDetails();
int row = m_list.indexOf(item);
Q_EMIT dataChanged(index(row, 0), index(row, 0));
updateItem(item);
qCDebug(PLASMA_NM) << "Item " << item->name() << ": active connection changed to " << item->connectionState();
}
}
......
Markdown is supported
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