NOISSUE Fix build on Qt 5.4 (hopefully)

This commit is contained in:
arthomnix 2023-02-05 16:33:20 +00:00
parent e463edb185
commit c7b0d15393

View File

@ -141,8 +141,6 @@ void InstanceExportTask::lookupSucceeded()
}
}
qDebug() << "Failed files: " << failedFiles;
QJsonObject indexJson;
indexJson.insert("formatVersion", QJsonValue(1));
indexJson.insert("game", QJsonValue("minecraft"));
@ -193,7 +191,7 @@ void InstanceExportTask::lookupSucceeded()
QTemporaryDir tmp;
if (tmp.isValid()) {
Json::write(indexJson, tmp.filePath("modrinth.index.json"));
Json::write(indexJson, tmp.path() + "/modrinth.index.json");
if (!failedFiles.isEmpty()) {
QDir tmpDir(tmp.path());