Skip to content

Commit

Permalink
Remove redundant openUrl variable
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Dec 7, 2022
1 parent 7eb31c3 commit 58f9107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/editlocallyjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
}

Expand Down

0 comments on commit 58f9107

Please sign in to comment.