QTfrontend/util/DataManager.cpp
changeset 8920 caa614af152d
parent 8918 512753ea4b1b
child 9080 9b42757d7e71
--- a/QTfrontend/util/DataManager.cpp	Thu Apr 18 17:37:50 2013 +0400
+++ b/QTfrontend/util/DataManager.cpp	Thu Apr 18 21:25:38 2013 +0400
@@ -26,6 +26,7 @@
 #include <QStandardItemModel>
 #include <QFileInfo>
 #include <QSettings>
+#include <QColor>
 
 #include "hwconsts.h"
 #include "HWApplication.h"
@@ -183,7 +184,12 @@
                 sNew.setIniCodec("UTF-8");
 
                 foreach(const QString & key, sOld.allKeys())
-                    sNew.setValue(key, sOld.value(key));
+                {
+                    if(key.startsWith("colors/color"))
+                        sNew.setValue(key, sOld.value(key).value<QColor>().name());
+                    else
+                        sNew.setValue(key, sOld.value(key));
+                }
             }
         }