diff --git a/src/gui/editlocallyjob.cpp b/src/gui/editlocallyjob.cpp index f4109a970d8c4..9af8e83de3b5d 100644 --- a/src/gui/editlocallyjob.cpp +++ b/src/gui/editlocallyjob.cpp @@ -586,7 +586,7 @@ void EditLocallyJob::openFile() // In case the VFS mode is enabled and a file is not yet hydrated, we must call QDesktopServices::openUrl // from a separate thread, or, there will be a freeze. To avoid searching for a specific folder and checking // if the VFS is enabled - we just always call it from a separate thread. - QtConcurrent::run([localFilePathUrl, this]() { + auto futureResult = QtConcurrent::run([localFilePathUrl, this]() { if (!QDesktopServices::openUrl(localFilePathUrl)) { emit callShowError(tr("Could not open %1").arg(_fileName), tr("Please try again.")); }