summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-01-13 10:58:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-19 13:48:17 -0800
commitff9506b21bbb9910256841dcb577bcb2e19047e8 (patch)
treec0bfa63b27ca32fc6d8c223531d5beff6fbb95fe /mobile-widgets/qmlmanager.cpp
parent1cd0863cca678cf54dfa8a71f3ca9f94bfc4f693 (diff)
downloadsubsurface-ff9506b21bbb9910256841dcb577bcb2e19047e8.tar.gz
Import: don't add to new trip while downloading
Since process_imported_dives() can add dives to a newly generated trip, this need not be done in the downloading code. This makes data flow distinctly simpler, as no trip table and no add-new-trip flag has to be passed down to the libdivecomputer glue code. Moreover, since now the trip creation is done at the import step rather than the download step, the latest status of the "add to new trip" checkbox will be considered. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 5e858f9cf..cc5072a63 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1803,11 +1803,6 @@ bool QMLManager::DC_bluetoothMode() const
return DCDeviceData::instance()->bluetoothMode();
}
-bool QMLManager::DC_createNewTrip() const
-{
- return DCDeviceData::instance()->createNewTrip();
-}
-
bool QMLManager::DC_saveDump() const
{
return DCDeviceData::instance()->saveDump();
@@ -1853,11 +1848,6 @@ void QMLManager::DC_setForceDownload(bool force)
DCDeviceData::instance()->setForceDownload(force);
}
-void QMLManager::DC_setCreateNewTrip(bool create)
-{
- DCDeviceData::instance()->setCreateNewTrip(create);
-}
-
void QMLManager::DC_setSaveDump(bool dumpMode)
{
DCDeviceData::instance()->setSaveDump(dumpMode);