fix qt 6.10 debug build (#6271)

* fix qt 6.10 build

* fix games model parameter order and correct parameter names

* add missing include for qt5
This commit is contained in:
ebbit1q 2025-11-05 12:10:36 +01:00 committed by GitHub
parent 1c209b3320
commit d914667238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 89 additions and 160 deletions

View file

@ -440,7 +440,10 @@ void TabReplays::downloadFinished(const Response &r,
const std::string &_data = resp.replay_data();
QFile f(filePath);
f.open(QIODevice::WriteOnly);
if (!f.open(QIODevice::WriteOnly)) {
qWarning() << "failed to open" << filePath << "for writing after downloading replay";
return;
}
f.write((const char *)_data.data(), _data.size());
f.close();
}