Fix build failures with Qt 6

This commit is contained in:
Alexander Babikov
2025-08-08 02:52:07 +05:00
parent 72020e4b62
commit 4d198a9b71
2 changed files with 4 additions and 0 deletions

View File

@@ -234,7 +234,9 @@ VMManagerSystem::loadSettings()
}
// qInfo() << "Loaded "<< config_file.filePath() << "status:" << settings.status();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
settings.setIniCodec("UTF-8");
#endif
// Clear out the config hash in case the config is reloaded
for (const auto &outer_key : config_hash.keys()) {
config_hash[outer_key].clear();