1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

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

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);