diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 0883d0389..1d1168ac4 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -165,6 +165,7 @@ void QMLManager::usbRescan() QMLManager::QMLManager() : m_locationServiceEnabled(false), m_verboseEnabled(false), m_diveListProcessing(false), + m_initialized(false), m_pluggedInDeviceName(""), m_showNonDiveComputers(false), undoAction(Command::undoAction(this)), @@ -518,6 +519,8 @@ void QMLManager::finishSetup() appendTextToLog(tr("no cloud credentials")); setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT); } + m_initialized = true; + emit initializedChanged(); } QMLManager::~QMLManager() diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 932ffc911..67769d66f 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -59,6 +59,7 @@ class QMLManager : public QObject { Q_PROPERTY(QString undoText READ getUndoText NOTIFY undoTextChanged) // this is a read-only property Q_PROPERTY(QString redoText READ getRedoText NOTIFY redoTextChanged) // this is a read-only property Q_PROPERTY(bool diveListProcessing MEMBER m_diveListProcessing WRITE setDiveListProcessing NOTIFY diveListProcessingChanged) + Q_PROPERTY(bool initialized MEMBER m_initialized NOTIFY initializedChanged) public: QMLManager(); @@ -248,6 +249,7 @@ private: bool m_locationServiceAvailable; bool m_verboseEnabled; bool m_diveListProcessing; + bool m_initialized; GpsLocation *locationProvider; bool m_loadFromCloud; static QMLManager *m_instance; @@ -291,6 +293,7 @@ signals: void locationServiceAvailableChanged(); void verboseEnabledChanged(); void diveListProcessingChanged(); + void initializedChanged(); void logTextChanged(); void loadFromCloudChanged(); void startPageTextChanged();