diff --git a/src/qinisettings.h b/src/qinisettings.h index 20fae97e0..c3dbd4800 100644 --- a/src/qinisettings.h +++ b/src/qinisettings.h @@ -64,7 +64,8 @@ public: } void setValue(const QString &key, const QVariant &val) { - key = key.replace("/", "\\"); + if(format() == QSettings::NativeFormat) + key = key.replace("/", "\\"); QSettings::setValue(key, val); } #endif