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:
committed by
Tobias Fella
parent
ffa8fbf365
commit
236c6a2d04
@@ -1251,6 +1251,6 @@ bool NeoChatRoom::downloadTempFile(const QString &eventId)
|
||||
return false;
|
||||
}
|
||||
|
||||
downloadFile(eventId, file.fileName());
|
||||
downloadFile(eventId, QUrl::fromLocalFile(file.fileName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user