Explorar o código

CHG: hosted apps will be terminated when the hosts exits.

Marco Nolden %!s(int64=14) %!d(string=hai) anos
pai
achega
82e17b84af

+ 5 - 0
Plugins/org.commontk.dicom.examplehost/ctkDicomExampleHost.cpp

@@ -41,3 +41,8 @@ void ctkDicomExampleHost::notifyStatus(const ctkDicomWG23::Status& status){
     qDebug()<< "new status received:"<<status.codeMeaning;
     emit statusReceived(status);;
 }
+
+ctkDicomExampleHost::~ctkDicomExampleHost()
+{
+  this->appProcess.terminate();
+}

+ 1 - 0
Plugins/org.commontk.dicom.examplehost/ctkDicomExampleHost.h

@@ -19,6 +19,7 @@ public:
     virtual void notifyStateChanged(ctkDicomWG23::State state);
     virtual void notifyStatus(const ctkDicomWG23::Status& status);
     const QProcess& getAppProcess() const { return appProcess; }
+    ~ctkDicomExampleHost();
 
 signals:
     void stateChangedReceived(ctkDicomWG23::State state);