diff options
author | Joaquim Rocha <jrocha@igalia.com> | 2010-11-16 16:39:26 +0100 |
---|---|---|
committer | Armin Berres <armin.berres@basyskom.de> | 2010-11-16 18:18:59 +0100 |
commit | 6a84e0676c54a934688b5c6b62c549d502e8ec65 (patch) | |
tree | da9c122e4fa771902b16454fd965d226b4e9d808 | |
parent | fdf3502b3dde965142ab7080a56902a941cd97d8 (diff) |
Fixes: NB#204180 - Themed MCheckbox reacts unexpected if no pixmap is defined, defined color for pressed mode not taken
RevBy: Björn Schnabel
Details:
When the value of a pixmap attribute didn't start with a quote character ("),
it would be split by spaces but without excluding empty strings. This would
cause an empty pixmap attribute to actually try to load an image with an
empty name ("").
-rw-r--r-- | src/corelib/style/mstylesheetattribute.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/style/mstylesheetattribute.cpp b/src/corelib/style/mstylesheetattribute.cpp index c6d358df..95aafe4e 100644 --- a/src/corelib/style/mstylesheetattribute.cpp +++ b/src/corelib/style/mstylesheetattribute.cpp @@ -636,6 +636,7 @@ bool MStyleSheetAttribute::writeAttribute(const QString &filename, } else { //no quotes, just split the parameters list = value.split(' '); + list.removeAll(""); } //only image_id |