diff options
author | 2017-10-14 04:01:12 -0700 | |
---|---|---|
committer | 2017-10-14 04:01:12 -0700 | |
commit | 0039c61dce78ab148b05ceec3283a3bd29e1bb30 (patch) | |
tree | d8a429a53cb42e69a017ac4534fedfb075880a1f /core/connectionlistmodel.cpp | |
parent | aa7e78611ec87ce928f62a41311d47dec016ba97 (diff) | |
parent | ba4058667a21a278a394054fea70595358ac41f2 (diff) | |
download | subsurface-0039c61dce78ab148b05ceec3283a3bd29e1bb30.tar.gz |
Merge branch 'dynamic-bt' of https://github.com/janmulder/subsurface
Diffstat (limited to 'core/connectionlistmodel.cpp')
-rw-r--r-- | core/connectionlistmodel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/connectionlistmodel.cpp b/core/connectionlistmodel.cpp index 3e1e0d71c..7f8b9894b 100644 --- a/core/connectionlistmodel.cpp +++ b/core/connectionlistmodel.cpp @@ -42,3 +42,10 @@ void ConnectionListModel::addAddress(const QString address) m_addresses.append(address); endInsertRows(); } + +void ConnectionListModel::removeAllAddresses() +{ + beginRemoveRows(QModelIndex(), 0, rowCount()); + m_addresses.clear(); + endRemoveRows(); +} |