QML UI: Use AddDive instead of clear dive

No need to clear the dives when adding a new one.

Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
Grace Karanja 2015-08-16 11:57:18 +03:00 committed by Dirk Hohndel
parent a734a2ee19
commit 5a7dbf0225
3 changed files with 8 additions and 4 deletions

View file

@ -128,7 +128,7 @@ public:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QHash<int, QByteArray> roleNames() const;
void clearDives();
void startAddDive();
private:
QList<MobileDive> m_dives;
static DiveListModel *m_instance;