homescreenapp/stateplugins/hshomescreenstateplugin/tsrc/t_hshomescreenstateplugin/src/t_hsloadscenestate.cpp
changeset 101 ba1b7e218624
parent 90 3ac3aaebaee5
--- a/homescreenapp/stateplugins/hshomescreenstateplugin/tsrc/t_hshomescreenstateplugin/src/t_hsloadscenestate.cpp	Mon Oct 18 10:20:15 2010 +0300
+++ b/homescreenapp/stateplugins/hshomescreenstateplugin/tsrc/t_hshomescreenstateplugin/src/t_hsloadscenestate.cpp	Wed Oct 20 15:25:39 2010 +0300
@@ -38,18 +38,19 @@
 {
     HbInstance::instance();
     HbMainWindow mainWindow;
-    mainWindow.show();
-
+   
     HsLoadSceneState *lss = new HsLoadSceneState;
 
     QStateMachine *sm = new QStateMachine;
     sm->addState(lss);
     sm->setInitialState(lss);
     sm->start();
-    QCoreApplication::sendPostedEvents();
+ 
+    QCoreApplication::sendPostedEvents(sm,0);
     // main window deleted -> HsGui must be deleted also
     delete HsGui::takeInstance();
     delete sm;
+  
 }
 
 #ifdef Q_OS_SYMBIAN
@@ -57,8 +58,8 @@
 {
     HbInstance::instance();
     HbMainWindow mainWindow;
-    mainWindow.show();
-    QCoreApplication::sendPostedEvents();
+  //  mainWindow.show();
+   // QCoreApplication::sendPostedEvents();
     
     HsLoadSceneState *lss = new HsLoadSceneState;
     XQSettingsKey testKey(XQSettingsKey::TargetPublishAndSubscribe, KPSUidStartup.iUid, KPSStartupUiPhase);