X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Flibs%2FCommon%2Fconfig.cpp;h=c4f09970ff13e5ccf47a7a5ae2afb63f5612c5ce;hb=72ea4a16988f1c28e97064222e722f19bc31b3a6;hp=610dd74d98b445ba766efad28cc0badf0df0e557;hpb=ec272061c2af46e4cd8730c18682e18ac5b369ff;p=evaf
diff --git a/src/libs/Common/config.cpp b/src/libs/Common/config.cpp
index 610dd74..c4f0997 100644
--- a/src/libs/Common/config.cpp
+++ b/src/libs/Common/config.cpp
@@ -123,7 +123,7 @@ QVariant Config::getValue(QString const & paramName, QVariant const & defaultVal
}
// Read the value
- return ini->getValue(name, defaultValue);
+ return ini->getValue(name.toLocal8Bit(), defaultValue);
}
bool Config::setValue(QString const & paramName, QVariant const & value, bool commit)
@@ -198,7 +198,7 @@ bool Config::writeValue(QString const & paramName, QVariant const & value)
}
// Write the value
- if (!ini->setValue(name, value))
+ if (!ini->setValue(name.toLocal8Bit(), value))
return false;
return true;