summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-04 19:34:59 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-04 19:51:35 -0800
commitfd78f8dc1ae3e64c7e861957d3207923f8df4714 (patch)
tree50cdf60c21ff7ff4f5964368d2e0c0d0afbb7302 /qt-mobile/qml/main.qml
parent426660025402e47e8de89b6e741fd372cbcac8fb (diff)
downloadsubsurface-fd78f8dc1ae3e64c7e861957d3207923f8df4714.tar.gz
QML-UI: re-architect the way we access network resources
We really need to verify that the credentials are valid before trying to access our backend resources. Trying to do so in a clean manner caused quite a bit of changes to how we retrieve the webservice userid and how we load the dive list from cloud storage. So instead of accessing the network resources directly, this adds a handler function that first checks the validity of the credentials (by using the rederict handler on the cloud server), and only calls the function that does the actual work (looks up the web service userid, loads the dives) if that succeeds. Right now there is no good user feedback mechanism - this just gets logged on the log page. But this is a massive improvement if there are issues with network connectivity or if the user mistyped their credentials. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r--qt-mobile/qml/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index c9c2e487e..b85e42f29 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -199,6 +199,6 @@ MobileComponents.ApplicationWindow {
Component.onCompleted: {
print("MobileComponents.Units.gridUnit is: " + MobileComponents.Units.gridUnit);
- manager.loadDives();
+ manager.finishSetup();
}
}