From: Claudio Cambra Date: Wed, 7 Dec 2022 12:48:51 +0000 (+0100) Subject: Remove redundant openUrl variable X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~88^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58f91072a5eaa1ddfef321b8ec8f2b34ef2cb5ce;p=nextcloud-desktop.git Remove redundant openUrl variable Signed-off-by: Claudio Cambra --- diff --git a/src/gui/editlocallyjob.cpp b/src/gui/editlocallyjob.cpp index de01a2cc2..1027243e3 100644 --- a/src/gui/editlocallyjob.cpp +++ b/src/gui/editlocallyjob.cpp @@ -546,8 +546,7 @@ void EditLocallyJob::openFile() // 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]() { - const auto fileOpened = QDesktopServices::openUrl(localFilePathUrl); - if (!fileOpened) { + if (QDesktopServices::openUrl(localFilePathUrl)) { showError(tr("Could not open %1").arg(_fileName), tr("Please try again.")); }