avoid warning by ignoring the return value of QtConcurrent::run

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-09-19 10:59:55 +02:00 committed by Matthieu Gallien
parent 910d7f03e8
commit 3ad7ac922a
1 changed files with 1 additions and 1 deletions

View File

@ -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."));
}