summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-20 22:05:31 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-20 22:08:06 -0700
commitc08bb24ce53e7d82eb865808a769a05fc4b49ab7 (patch)
treec9459594a048dbc9500705e0cfc464cb3ff1b350 /network
parentdc5eea70949891012ddb7d37727955c30a2e74bb (diff)
libqtappfw: network: wifinetworkmodel: call clear() on list
After removing all items from wifi model the respective list m_networks needs to have clear() called Change-Id: I5058e187015f362006df823e8e0e8b4ee2c32bc7 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'network')
-rw-r--r--network/wifinetworkmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/network/wifinetworkmodel.cpp b/network/wifinetworkmodel.cpp
index 3cfd7dd..3837278 100644
--- a/network/wifinetworkmodel.cpp
+++ b/network/wifinetworkmodel.cpp
@@ -82,6 +82,7 @@ void WifiNetworkModel::removeAllNetworks()
{
beginRemoveRows(QModelIndex(), 0, m_networks.count() - 1);
qDeleteAll(m_networks.begin(), m_networks.end());
+ m_networks.clear();
endRemoveRows();
}