diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-06 11:47:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-06 11:47:12 -0700 |
commit | 9f7e509f9afe57f81adda9649dc4f57a27faf5c7 (patch) | |
tree | e41e44d1cf9b1b8fa7a4aac8bafae9ef7c686938 /mobile-widgets/qmlmanager.h | |
parent | 3bafc2a4e6c0e7c34f941332e15677c35be3297c (diff) | |
download | subsurface-9f7e509f9afe57f81adda9649dc4f57a27faf5c7.tar.gz |
QML UI: break the sync into explicit save local and save cloud
This makes the code much cleaner and easier to understand and should allow
us to then switch back to doing at least the local save right after we make
any changes to the data.
This commit also tries to make sure that the accessingCloud status stays
correct and consistent throughout all the various success and error paths.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index ba37c4f58..c7699b3c5 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -99,8 +99,8 @@ public slots: QString airtemp, QString watertemp, QString suit, QString buddy, QString diveMaster, QString weight, QString notes, QString startpressure, QString endpressure, QString gasmix); - - void saveChanges(); + void saveChangesLocal(); + void saveChangesCloud(); void deleteDive(int id); void undoDelete(int id); QString addDive(); |