Fix build with Qt 6.10

This commit is contained in:
Ilya Fedin
2025-10-08 03:16:12 +00:00
committed by John Preston
parent 7bdbe0ef77
commit 73014a33fe
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -1117,9 +1117,10 @@ void DocumentData::save(
if (!toFile.isEmpty()) {
if (!media->bytes().isEmpty()) {
QFile f(toFile);
f.open(QIODevice::WriteOnly);
f.write(media->bytes());
f.close();
if (f.open(QIODevice::WriteOnly)) {
f.write(media->bytes());
f.close();
}
setLocation(Core::FileLocation(toFile));
session().local().writeFileLocation(