diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-07-19 09:16:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-19 21:49:37 +0900 |
commit | 619fbaf1e231a8f54e3a7458f1f3081deab1825b (patch) | |
tree | 8068f5ddedf3fd82e9bf6616b50bf07d35292f34 /mobile-widgets/qmlmanager.h | |
parent | 915b760d54d072f1d6ad805a3a963dc7c0ec6f70 (diff) | |
download | subsurface-619fbaf1e231a8f54e3a7458f1f3081deab1825b.tar.gz |
QML UI: Allow cancel of ongoing download
This commit adds the capability to cancel a running download from DC.
The actual cancel is fully handled in the underlying libdivecomputer
code. As the user may be interested in the dives downloaded up to
the moment of cancel, do not just close the download screen (as
it was before this commit). Now, the <quit> button changes to
<cancel> when the download is started, and pressing cancel, only
cancels the download and does not close the download screen, but
presents the so far downloaded data. When no download is running,
the <quit> button just quits the screen as before.
Fixes: #485
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 33831d396..8e4f05fa6 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -162,6 +162,7 @@ public slots: void sendGpsData(); void downloadGpsData(); void populateGpsData(); + void cancelDownloadDC(); void clearGpsData(); void finishSetup(); void openLocalThenRemote(QString url); |