Actually pass the finished QFuture back.

This commit is contained in:
John Maguire 2015-11-26 18:42:12 +00:00
parent 2cd15ff430
commit 689858026e
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ _detail::ClosureBase* NewClosure(QFuture<T> future, QObject* receiver,
QFutureWatcher<T>* watcher = new QFutureWatcher<T>;
watcher->setFuture(future);
QObject::connect(watcher, SIGNAL(finished()), watcher, SLOT(deleteLater()));
return NewClosure(watcher, SIGNAL(finished()), receiver, slot, args...);
return NewClosure(watcher, SIGNAL(finished()),
receiver, slot, future, args...);
}
void DoAfter(QObject* receiver, const char* slot, int msec);