Commit 4b7155b7 authored by pvuorela's avatar pvuorela

Merge branch 'clear_vpn_lists' into 'master'

[nemo-qml-plugin-systemsettings] Clear lists when deleting content. Contributes to JB#45430

See merge request !103
parents 1dc0d5fe 7a50f8f6
......@@ -371,8 +371,12 @@ VpnModel::VpnModel(QObject *parent)
}
clear();
setPopulated(false);
qDeleteAll(connections_);
connections_.clear();
qDeleteAll(vpnServices_);
vpnServices_.clear();
});
connect(watcher, &QDBusServiceWatcher::serviceRegistered, this, [this](const QString &) {
fetchVpnList();
......
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