Skip to content

Commit

Permalink
[nemo-qml-plugin-systemsettings] Clear lists when deleting content. C…
Browse files Browse the repository at this point in the history
…ontributes to JB#45430
  • Loading branch information
pvuorela committed Apr 9, 2019
1 parent 1dc0d5f commit 7a50f8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vpnmodel.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 7a50f8f

Please sign in to comment.