@@ -26,25 +26,27 @@ ApplicationInfo::ApplicationInfo(const QString &appId, QObject *parent)
26 : ApplicationInfoInterface(appId, parent)
26 : ApplicationInfoInterface(appId, parent)
27 ,m_appId(appId)
27 ,m_appId(appId)
28 ,m_stage(MainStage)
28 ,m_stage(MainStage)
29− ,m_state(Running)
29+ ,m_state(Starting)
30 ,m_focused(false)
30 ,m_focused(false)
31 ,m_fullscreen(false)
31 ,m_fullscreen(false)
32 ,m_windowItem(0)
32 ,m_windowItem(0)
33 ,m_windowComponent(0)
33 ,m_windowComponent(0)
34 ,m_parentItem(0)
34 ,m_parentItem(0)
36+ QTimer::singleShot(300, this, SLOT(setRunning()));
38ApplicationInfo::ApplicationInfo(QObject *parent)
39ApplicationInfo::ApplicationInfo(QObject *parent)
39 : ApplicationInfoInterface(QString(), parent)
40 : ApplicationInfoInterface(QString(), parent)
40 ,m_stage(MainStage)
41 ,m_stage(MainStage)
41− ,m_state(Running)
42+ ,m_state(Starting)
42 ,m_focused(false)
43 ,m_focused(false)
43 ,m_fullscreen(false)
44 ,m_fullscreen(false)
44 ,m_windowItem(0)
45 ,m_windowItem(0)
45 ,m_windowComponent(0)
46 ,m_windowComponent(0)
46 ,m_parentItem(0)
47 ,m_parentItem(0)
49+ QTimer::singleShot(300, this, SLOT(setRunning()));
50void ApplicationInfo::onWindowComponentStatusChanged(QQmlComponent::Status status)
52void ApplicationInfo::onWindowComponentStatusChanged(QQmlComponent::Status status)
@@ -53,6 +55,12 @@ void ApplicationInfo::onWindowComponentStatusChanged(QQmlComponent::Status statu
53 doCreateWindowItem();
55 doCreateWindowItem();
58+void ApplicationInfo::setRunning()
61+ Q_EMIT stateChanged();
56void ApplicationInfo::createWindowComponent()
64void ApplicationInfo::createWindowComponent()
58 // The assumptions I make here really should hold.
66 // The assumptions I make here really should hold.