fix: warnings when compiling with Qt 6.10 (#6422)

This commit is contained in:
nerix
2025-10-05 15:18:54 +02:00
committed by GitHub
parent 2c44a2efd2
commit 38a3bf2ef8
17 changed files with 105 additions and 24 deletions
+6 -1
View File
@@ -92,7 +92,12 @@ bool PluginController::tryLoadFromDir(const QDir &pluginDir)
return false;
}
QFile infoFile(infojson.absoluteFilePath());
infoFile.open(QIODevice::ReadOnly);
if (!infoFile.open(QIODevice::ReadOnly))
{
qCWarning(chatterinoLua)
<< "Could not open info.json" << infoFile.errorString();
return false;
}
auto everything = infoFile.readAll();
auto doc = QJsonDocument::fromJson(everything);
if (!doc.isObject())