From a3bdf49b84d8a30a22e05bc965e98f5e7914f637 Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Wed, 12 Aug 2015 15:01:39 +0300 Subject: QML UI: Clear divelist model before starting new dive When user clicks on AddDive, we should clear the model. Signed-off-by: Grace Karanja --- qt-models/divelistmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models/divelistmodel.h') diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index de96480bd..ad7eb99b6 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -128,7 +128,7 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; QHash roleNames() const; - + void clearDives(); private: QList m_dives; static DiveListModel *m_instance; -- cgit v1.2.3-70-g09d2