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(
+1 -1
View File
@@ -1654,7 +1654,7 @@ mac:
make install
""")
else: # qt > '6'
branch = 'v$QT' + ('-lts-lgpl' if qt < '6.3' else '')
branch = 'v$QT' + ('-lts-lgpl' if qt.startswith('6.2.') else '')
stage('qt_' + qt, """
git clone -b """ + branch + """ https://github.com/qt/qt5.git qt_$QT
cd qt_$QT