QmlDesigner.NodeInstances: Fix crash for dot properties

Change-Id: I5fcecd6fb1e50220053b2769e549f62203f33a06
Reviewed-on: http://codereview.qt.nokia.com/4075
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Marco Bubke
2011-09-01 14:31:01 +02:00
parent 485e4dd738
commit ed842542a5
2 changed files with 1 additions and 5 deletions

View File

@@ -573,7 +573,7 @@ QVariant ObjectNodeInstance::property(const QString &name) const
QDeclarativeProperty property(object(), name, context());
if (property.property().isEnumType()) {
QVariant value = object()->property(name.toLatin1());
QVariant value = property.read();
return property.property().enumerator().valueToKey(value.toInt());
}