summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-16 22:24:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commitb6f821886b2ed29230d08357df5c09ee66f7cc8d (patch)
tree24d78ae358f527374432c6fa77a22a30f2478bbd /qt-models/diveimportedmodel.h
parent3b6b9951ae0595c21dc35d95126e644babbfbc2d (diff)
downloadsubsurface-b6f821886b2ed29230d08357df5c09ee66f7cc8d.tar.gz
mobile: unify download code on mobile and desktop
Use the undo-command for importing dives also on mobile. This should make the whole disconnect-model shenigans unnecessary. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveimportedmodel.h')
-rw-r--r--qt-models/diveimportedmodel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/diveimportedmodel.h b/qt-models/diveimportedmodel.h
index 612bee8c7..58d073e37 100644
--- a/qt-models/diveimportedmodel.h
+++ b/qt-models/diveimportedmodel.h
@@ -4,6 +4,7 @@
#include <QAbstractTableModel>
#include <vector>
#include "core/divesite.h"
+#include "core/divelist.h"
#include "core/downloadfromdcthread.h"
class DiveImportedModel : public QAbstractTableModel
@@ -25,7 +26,7 @@ public:
std::pair<struct dive_table, struct dive_site_table> consumeTables(); // Returns dives and sites and resets model.
int numDives() const;
- Q_INVOKABLE void recordDives();
+ Q_INVOKABLE void recordDives(int flags = IMPORT_PREFER_IMPORTED | IMPORT_IS_DOWNLOADED);
Q_INVOKABLE void startDownload();
DownloadThread thread;