From cd09e24cef650c8f5744ff76ee11aed15311be93 Mon Sep 17 00:00:00 2001
From: Pawel Polanski <pawel.3.polanski@nokia.com>
Date: Thu, 22 Jul 2010 10:51:19 +0200
Subject: [PATCH] Workaround QTBUG-12345

Reviewed-by: Tobias Hunger
---
 src/plugins/projectexplorer/persistentsettings.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/persistentsettings.cpp b/src/plugins/projectexplorer/persistentsettings.cpp
index 16cabf3c410..3de35dda4fd 100644
--- a/src/plugins/projectexplorer/persistentsettings.cpp
+++ b/src/plugins/projectexplorer/persistentsettings.cpp
@@ -89,8 +89,13 @@ QVariant PersistentSettingsReader::readValue(const QDomElement &valElement) cons
     QVariant v;
 
     if (name == QLatin1String("value")) {
-        v.setValue(valElement.text());
-        v.convert(QVariant::nameToType(type.toLatin1().data()));
+        if(type == QLatin1String("QChar")) {
+            //Workaround: QTBUG-12345
+            v.setValue(QChar(valElement.text().at(0)));
+        } else {
+            v.setValue(valElement.text());
+            v.convert(QVariant::nameToType(type.toLatin1().data()));
+        }
     } else if (name == QLatin1String("valuelist")) {
         QDomElement child = valElement.firstChildElement();
         QList<QVariant> valList;
-- 
GitLab