Forráskód Böngészése

Queued connection for clean state transition on exiting

Ivo Wolf 13 éve
szülő
commit
f9188c9c1d

+ 1 - 1
Plugins/org.commontk.dah.examplehost/ctkExampleDicomHost.cpp

@@ -38,7 +38,7 @@ ctkExampleDicomHost::ctkExampleDicomHost(ctkHostedAppPlaceholderWidget* placehol
     PlaceholderWidget(placeholderWidget),
     exitingApplication(false)
 {
-  connect(this,SIGNAL(appReady()),SLOT(onAppReady()));
+  connect(this,SIGNAL(appReady()),SLOT(onAppReady()), Qt::QueuedConnection);
   connect(this,SIGNAL(startProgress()),this,SLOT(onStartProgress()));
   connect(this,SIGNAL(releaseAvailableResources()),this,SLOT(onReleaseAvailableResources()));
   connect(this,SIGNAL(resumed()),this,SLOT(onResumed()));

+ 1 - 1
Plugins/org.commontk.dah.hostedapp/ctkDicomAbstractApp.cpp

@@ -119,7 +119,7 @@ bool ctkDicomAbstractApp::setState(ctkDicomAppHosting::State newState)
     if (d_ptr->currentState == ctkDicomAppHosting::IDLE)
     {
       //maybe not useful:
-      getHostInterface()->notifyStateChanged(ctkDicomAppHosting::EXIT);
+      //getHostInterface()->notifyStateChanged(ctkDicomAppHosting::EXIT);
       emit exitHostedApp();
       result = true;
     }