aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-02 13:19:16 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-06-02 13:19:16 +0000
commitf83a2576bd49a16e528e8cda2d76205d5db29acb (patch)
treeba882576e6e4663f5a41f0ba41587682dff8205b
parenta00907d6756027056e77af490651bf807f501d1c (diff)
downloadqmmp-f83a2576bd49a16e528e8cda2d76205d5db29acb.tar.gz
qmmp-f83a2576bd49a16e528e8cda2d76205d5db29acb.tar.bz2
qmmp-f83a2576bd49a16e528e8cda2d76205d5db29acb.zip
fixed skin parsing (#767)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5073 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/Ui/skinned/skin.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/Ui/skinned/skin.cpp b/src/plugins/Ui/skinned/skin.cpp
index 8021148a1..8481c0a52 100644
--- a/src/plugins/Ui/skinned/skin.cpp
+++ b/src/plugins/Ui/skinned/skin.cpp
@@ -413,6 +413,7 @@ QString Skin::getPath (const QString& name)
void Skin::loadPLEdit()
{
+ QByteArray key, value;
QString path = findFile("pledit.txt", m_skin_dir);
if (path.isEmpty())
path = findFile("pledit.txt", ":/default");
@@ -429,7 +430,12 @@ void Skin::loadPLEdit()
QList<QByteArray> l = line.split ('=');
if (l.count () == 2)
{
- m_pledit_txt[l[0].toLower () ] = l[1].trimmed();
+ key = l[0].toLower ();
+ value = l[1].trimmed();
+ if(!value.startsWith("#") && key != "font")
+ value.prepend("#"); //add # for color if needed
+
+ m_pledit_txt[key] = value.trimmed();
}
else if (line.length() == 0)
{