@@ -26,25 +26,27 @@ ApplicationInfo::ApplicationInfo(const QString &appId, QObject *parent)
2626 : ApplicationInfoInterface(appId, parent)
2727 ,m_appId(appId)
2828 ,m_stage(MainStage)
29− ,m_state(Running)
29+ ,m_state(Starting)
3030 ,m_focused(false)
3131 ,m_fullscreen(false)
3232 ,m_windowItem(0)
3333 ,m_windowComponent(0)
3434 ,m_parentItem(0)
3535{
36+ QTimer::singleShot(300, this, SLOT(setRunning()));
3637}
3738
3839ApplicationInfo::ApplicationInfo(QObject *parent)
3940 : ApplicationInfoInterface(QString(), parent)
4041 ,m_stage(MainStage)
41− ,m_state(Running)
42+ ,m_state(Starting)
4243 ,m_focused(false)
4344 ,m_fullscreen(false)
4445 ,m_windowItem(0)
4546 ,m_windowComponent(0)
4647 ,m_parentItem(0)
4748{
49+ QTimer::singleShot(300, this, SLOT(setRunning()));
4850}
4951
5052void ApplicationInfo::onWindowComponentStatusChanged(QQmlComponent::Status status)
@@ -53,6 +55,12 @@ void ApplicationInfo::onWindowComponentStatusChanged(QQmlComponent::Status statu
5355 doCreateWindowItem();
5456}
5557
58+void ApplicationInfo::setRunning()
59+{
60+ m_state = Running;
61+ Q_EMIT stateChanged();
62+}
63+
5664void ApplicationInfo::createWindowComponent()
5765{
5866 // The assumptions I make here really should hold.