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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadFile(eventId, file.fileName());
|
downloadFile(eventId, QUrl::fromLocalFile(file.fileName()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ TimelineContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openSavedFile() {
|
function openSavedFile() {
|
||||||
if (UrlHelper.openUrl(progressInfo.localPath)) return;
|
UrlHelper.openUrl(progressInfo.localPath);
|
||||||
if (UrlHelper.openUrl(progressInfo.localDir)) return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
innerObject: RowLayout {
|
innerObject: RowLayout {
|
||||||
|
|||||||
Reference in New Issue
Block a user