diff options
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 99811d66c..a610b36cd 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -308,6 +308,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), void QMLManager::applicationStateChanged(Qt::ApplicationState state) { + static bool initializeOnce = false; QString stateText; switch (state) { case Qt::ApplicationActive: stateText = "active"; break; @@ -321,8 +322,9 @@ void QMLManager::applicationStateChanged(Qt::ApplicationState state) stateText.append((unsavedChanges() ? QLatin1String("") : QLatin1String("no ")) + QLatin1String("unsaved changes")); appendTextToLog(stateText); - if (state == Qt::ApplicationActive && !m_initialized) { + if (state == Qt::ApplicationActive && !m_initialized && !initializeOnce) { // once the app UI is displayed, finish our setup and mark the app as initialized + initializeOnce = true; finishSetup(); appInitialized(); } |