mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
avoid warning by ignoring the return value of QtConcurrent::run
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
910d7f03e8
commit
3ad7ac922a
1 changed files with 1 additions and 1 deletions
|
@ -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."));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue