From 8abed8a0eeb8968cc1e1e18a934f39820d346d79 Mon Sep 17 00:00:00 2001 From: Bill King <bill.king@nokia.com> Date: Wed, 28 Jul 2010 13:22:20 +1000 Subject: [PATCH] Fixes crash when colorname is a set of empty quotes BugReport: QTCREATORBUG-1959 --- .../qmldesigner/components/propertyeditor/colorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp index c632e489a22..610eef28faf 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp @@ -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; -- GitLab