From 32e5a8d29ae9343d8cd265e42cefa01dde92e3cb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 27 Jul 2015 09:15:04 -0700 Subject: [PATCH] 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 --- qt-mobile/qmlmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()