QPIConfig file write fix

This commit is contained in:
2021-12-24 14:40:31 +03:00
parent 93ffd99b0c
commit fcdc142991
4 changed files with 17 additions and 5 deletions

View File

@@ -606,6 +606,10 @@ void QPIConfig::writeAll() {
stream.setString(buffer);
buffer->clear();
}
#if QT_VERSION_MAJOR <= 5
if (!codec.isEmpty())
stream.setCodec(codec.toLatin1().data());
#endif
stream.seek(0);
buildFullNames(&root);
Branch b = allLeaves();