Commit 2bb496b0 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't reset model when device state changes

Summary: same resoning as in D24903

Test Plan: Toggled Wifi in plasmoid

Reviewers: jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24919
parent 69293007
......@@ -829,13 +829,11 @@ void NetworkModel::deviceStateChanged(NetworkManager::Device::State state, Netwo
return;
}
beginResetModel();
for (NetworkModelItem *item : m_list.returnItems(NetworkItemsList::Device, device->uni())) {
item->setDeviceState(state);
item->invalidateDetails();
updateItem(item);
// qCDebug(PLASMA_NM) << "Item " << item->name() << ": device state changed to " << item->deviceState();
}
endResetModel();
}
#if WITH_MODEMMANAGER_SUPPORT
......
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