mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 15:32:08 +00: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(
|
||||
|
||||
Reference in New Issue
Block a user