Commit d971703e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Don't reset model when available connection appears

addAvailableConnection() does the proper row/data update handling already

Depends on D24920

Test Plan: Opened a new Wifi, it appeared in the plasmoid

Reviewers: jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 17e4fd44
......@@ -644,11 +644,10 @@ void NetworkModel::activeVpnConnectionStateChanged(NetworkManager::VpnConnection
void NetworkModel::availableConnectionAppeared(const QString &connection)
NetworkManager::Device::Ptr device = NetworkManager::findNetworkInterface(qobject_cast<NetworkManager::Device*>(sender())->uni());
if (device) {
addAvailableConnection(connection, device);
if (!device)
addAvailableConnection(connection, device);
void NetworkModel::availableConnectionDisappeared(const QString &connection)
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