diff --git a/src/plugins/debugger/loadcoredialog.cpp b/src/plugins/debugger/loadcoredialog.cpp index 86c9c738dc3..85a81a9418d 100644 --- a/src/plugins/debugger/loadcoredialog.cpp +++ b/src/plugins/debugger/loadcoredialog.cpp @@ -243,18 +243,18 @@ void AttachCoreDialog::accepted() using ResultType = expected_str; - const auto copyFileAsync = [=](QFutureInterface &fi, const FilePath &srcPath) { - fi.reportResult(copyFile(srcPath)); + const auto copyFileAsync = [=](QPromise &promise, const FilePath &srcPath) { + promise.addResult(copyFile(srcPath)); }; const Group root = { parallel, Async{[=](auto &task) { - task.setAsyncCallData(copyFileAsync, this->coreFile()); + task.setConcurrentCallData(copyFileAsync, this->coreFile()); }, [=](const auto &task) { d->coreFileResult = task.result(); }}, Async{[=](auto &task) { - task.setAsyncCallData(copyFileAsync, this->symbolFile()); + task.setConcurrentCallData(copyFileAsync, this->symbolFile()); }, [=](const auto &task) { d->symbolFileResult = task.result(); }}, };