mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-22 18:32:10 -05:00
Build properly on macOS and Linux
This commit is contained in:
parent
259c7aca4c
commit
41b6a6c410
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ template <typename T> tPromise<T>::tPromise(std::function<T (QString&)> function
|
||||||
|
|
||||||
runFutureWatcher = new QFutureWatcher<T>();
|
runFutureWatcher = new QFutureWatcher<T>();
|
||||||
runFutureWatcher->setFuture(runFuture);
|
runFutureWatcher->setFuture(runFuture);
|
||||||
connect(runFutureWatcher, &QFutureWatcher::finished, [=] {
|
connect(runFutureWatcher, &QFutureWatcher<T>::finished, [=] {
|
||||||
if (errorString != "") {
|
if (errorString != "") {
|
||||||
errored = true;
|
errored = true;
|
||||||
if (functionSetToRunAfterFailure) {
|
if (functionSetToRunAfterFailure) {
|
||||||
|
|
Loading…
Reference in a new issue