diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-16 01:22:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-16 01:22:44 -0700 |
commit | 77a3e6ac704c84548d383818dfbe17e3378b8151 (patch) | |
tree | cfb54db6bea4a19aa9edc06b34563737141d311b /qt-models/diveimportedmodel.h | |
parent | 27deb317b00aa61bedea8d781d8cff8be9a3720e (diff) | |
download | subsurface-77a3e6ac704c84548d383818dfbe17e3378b8151.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveimportedmodel.h')
-rw-r--r-- | qt-models/diveimportedmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<int, QByteArray> roleNames() const; Q_INVOKABLE void repopulate(); Q_INVOKABLE void recordDives(); |