From 77a3e6ac704c84548d383818dfbe17e3378b8151 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 16 Jun 2017 01:22:44 -0700 Subject: QML UI: clear the previous list when downloading When you start a new session with Download from DC, clear out the table from the last attempt before adding the page. Signed-off-by: Dirk Hohndel --- qt-models/diveimportedmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models/diveimportedmodel.h') diff --git a/qt-models/diveimportedmodel.h b/qt-models/diveimportedmodel.h index 3d128b074..2cca49f3d 100644 --- a/qt-models/diveimportedmodel.h +++ b/qt-models/diveimportedmodel.h @@ -18,7 +18,7 @@ public: QVariant headerData(int section, Qt::Orientation orientation, int role) const; void setImportedDivesIndexes(int first, int last); Qt::ItemFlags flags(const QModelIndex &index) const; - void clearTable(); + Q_INVOKABLE void clearTable(); QHash roleNames() const; Q_INVOKABLE void repopulate(); Q_INVOKABLE void recordDives(); -- cgit v1.2.3-70-g09d2