summaryrefslogtreecommitdiffstats
path: root/installerbuilder
diff options
context:
space:
mode:
authorAlexander Lenhardt <alexander.lenhardt@nokia.com>2011-12-16 13:29:30 +0100
committerTim Jenssen <tim.jenssen@nokia.com>2011-12-16 14:23:35 +0100
commita9797dbc73d0cd61c550f9ccabde8ed1a34ed956 (patch)
treeda264f4ac3158b77c1ae16244da7f0de8a1b589f /installerbuilder
parented58949110bc62fea573254b9b14a642a3c37b96 (diff)
treat strings containing commata as QStringLists
Change-Id: I6d8980a5825209b23539b4cd2fd6cf148e26d8ea Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r--installerbuilder/libinstaller/setqtcreatorvalueoperation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/setqtcreatorvalueoperation.cpp b/installerbuilder/libinstaller/setqtcreatorvalueoperation.cpp
index 15ff9a2e9..d1427e6c6 100644
--- a/installerbuilder/libinstaller/setqtcreatorvalueoperation.cpp
+++ b/installerbuilder/libinstaller/setqtcreatorvalueoperation.cpp
@@ -75,7 +75,10 @@ bool SetQtCreatorValueOperation::performOperation()
if (!group.isEmpty())
settings.beginGroup(group);
- settings.setValue(key, settingsValue);
+ if (settingsValue.contains(QLatin1String(","))) // comma separated list of strings
+ settings.setValue(key, settingsValue.split(QRegExp(QLatin1String("\\s*,\\s*")), QString::SkipEmptyParts));
+ else
+ settings.setValue(key, settingsValue);
if (!group.isEmpty())
settings.endGroup();