From: Mikko Rasa Date: Thu, 10 May 2012 21:13:40 +0000 (+0300) Subject: Emit signal_finished from InternalTask X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c06c655a1e1a3e4d60257c2916923b789c6a26b9;p=builder.git Emit signal_finished from InternalTask --- diff --git a/source/internaltask.cpp b/source/internaltask.cpp index 68a5e25..4293203 100644 --- a/source/internaltask.cpp +++ b/source/internaltask.cpp @@ -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(); }