OSDN Git Service

Fixes crash when colorname is a set of empty quotes
authorBill King <bill.king@nokia.com>
Wed, 28 Jul 2010 03:22:20 +0000 (13:22 +1000)
committerBill King <bill.king@nokia.com>
Wed, 28 Jul 2010 03:22:20 +0000 (13:22 +1000)
BugReport: QTCREATORBUG-1959

src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp

index c632e48..610eef2 100644 (file)
@@ -70,7 +70,7 @@ static inline QString properName(const QColor &color)
 
 static inline QColor properColor(const QString &str)
 {
-    if (str.isNull())
+    if (str.isEmpty())
         return QColor();
     int lalpha = 255;
     QString lcolorStr = str;