diff options
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(); +} |