Fix opending dir

UrlHelper doesn't return anything so it is useless to check the return
value in a if condition

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan
2022-11-16 21:08:23 +01:00
committed by Tobias Fella
parent ffa8fbf365
commit 236c6a2d04
2 changed files with 2 additions and 3 deletions

View File

@@ -1251,6 +1251,6 @@ bool NeoChatRoom::downloadTempFile(const QString &eventId)
return false;
}
downloadFile(eventId, file.fileName());
downloadFile(eventId, QUrl::fromLocalFile(file.fileName()));
return true;
}

View File

@@ -29,8 +29,7 @@ TimelineContainer {
}
function openSavedFile() {
if (UrlHelper.openUrl(progressInfo.localPath)) return;
if (UrlHelper.openUrl(progressInfo.localDir)) return;
UrlHelper.openUrl(progressInfo.localPath);
}
innerObject: RowLayout {