--- 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));
+ }
}
}