avoid warning by ignoring the return value of QtConcurrent::run
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 19 Sep 2023 08:59:55 +0000 (10:59 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 26 Apr 2024 07:05:12 +0000 (09:05 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/editlocallyjob.cpp

index f4109a970d8c4e019d1c73acaac37e4be5f4f6c5..9af8e83de3b5d22cf9949d15f38e55645cb7d272 100644 (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."));
         }