Remove redundant openUrl variable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-12-07 13:48:51 +01:00
parent 7eb31c31e5
commit 58f91072a5
No known key found for this signature in database
GPG Key ID: C839200C384636B0

View File

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