Build properly on macOS and Linux

This commit is contained in:
Victor Tran 2018-08-06 18:10:30 +10:00
parent 259c7aca4c
commit 41b6a6c410

View file

@ -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) {