Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 7a50f8f

Browse files
committed
[nemo-qml-plugin-systemsettings] Clear lists when deleting content. Contributes to JB#45430
1 parent 1dc0d5f commit 7a50f8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vpnmodel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,12 @@ VpnModel::VpnModel(QObject *parent)
371371
}
372372
clear();
373373
setPopulated(false);
374+
374375
qDeleteAll(connections_);
376+
connections_.clear();
377+
375378
qDeleteAll(vpnServices_);
379+
vpnServices_.clear();
376380
});
377381
connect(watcher, &QDBusServiceWatcher::serviceRegistered, this, [this](const QString &) {
378382
fetchVpnList();

0 commit comments

Comments
 (0)