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:
parent
2cd15ff430
commit
689858026e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user