Qt 6.10 compat
This commit is contained in:
parent
1bd2970c4d
commit
93ce60d6f1
5 changed files with 36 additions and 5 deletions
|
|
@ -299,12 +299,10 @@ MxcImageProvider::download(const QString &id,
|
|||
"/media_cache",
|
||||
fileName);
|
||||
QDir().mkpath(fileInfo.absolutePath());
|
||||
QFile f(fileInfo.absoluteFilePath());
|
||||
|
||||
if (fileInfo.exists()) {
|
||||
if (fileInfo.exists() && f.open(QIODevice::ReadOnly)) {
|
||||
if (encryptionInfo) {
|
||||
QFile f(fileInfo.absoluteFilePath());
|
||||
f.open(QIODevice::ReadOnly);
|
||||
|
||||
QByteArray fileData = f.readAll();
|
||||
auto tempData = mtx::crypto::to_string(
|
||||
mtx::crypto::decrypt_file(fileData.toStdString(), encryptionInfo.value()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue