summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r--qt-models/divelistmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp
index 4019bee8b..837b75f14 100644
--- a/qt-models/divelistmodel.cpp
+++ b/qt-models/divelistmodel.cpp
@@ -338,6 +338,11 @@ QHash<int, QByteArray> DiveListModel::roleNames() const
return roles;
}
+void DiveListModel::clearDives()
+{
+ m_dives.clear();
+}
+
DiveListModel *DiveListModel::instance()
{
return m_instance;