From d354d7133ef9bb296a2f3a0970e89d0518845693 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 16 Jul 2010 14:40:50 +0000 Subject: [PATCH] Fix to last commit --- src/qinisettings.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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