]> git.tdb.fi Git - builder.git/commitdiff
Emit signal_finished from InternalTask
authorMikko Rasa <tdb@tdb.fi>
Thu, 10 May 2012 21:13:40 +0000 (00:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:51 +0000 (00:08 +0300)
source/internaltask.cpp

index 68a5e25355f213223d8dc0c707ad6f84f95ede98..42932034c1435d4a655182b7189f86068bf9b5fb 100644 (file)
@@ -11,6 +11,8 @@ InternalTask::~InternalTask()
 
 Task::Status InternalTask::check()
 {
+       if(worker->get_status()!=RUNNING)
+               signal_finished.emit(worker->get_status()==SUCCESS);
        return worker->get_status();
 }