diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-27 09:15:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-27 09:15:04 -0700 |
commit | 32e5a8d29ae9343d8cd265e42cefa01dde92e3cb (patch) | |
tree | 6d1005350bc79aec4192a9f0b2c455c9428429da /qt-mobile | |
parent | 975ca2e56a5f8b31591c73b59a903e22e20fafe0 (diff) | |
download | subsurface-32e5a8d29ae9343d8cd265e42cefa01dde92e3cb.tar.gz |
QML UI: if the cloud credentials are set, open the dive list
There's no point opening to an empty screen and asking the user to do this
via the menu.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 7cd58449a..203dcde20 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -21,6 +21,8 @@ QMLManager::QMLManager() setCloudUserName(prefs.cloud_storage_email); setCloudPassword(prefs.cloud_storage_password); setSaveCloudPassword(prefs.save_password_local); + if (!same_string(prefs.cloud_storage_email, "") && !same_string(prefs.cloud_storage_password, "")) + loadDives(); } QMLManager::~QMLManager() |