mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix build with Qt 6.10
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user