Skip to content
Snippets Groups Projects
Commit 5d740f46 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.metaInfo: crash fix

parent 8013eead
No related branches found
No related tags found
No related merge requests found
...@@ -256,7 +256,7 @@ QHash<QString,PropertyMetaInfo> NodeMetaInfo::dotProperties() const ...@@ -256,7 +256,7 @@ QHash<QString,PropertyMetaInfo> NodeMetaInfo::dotProperties() const
foreach (const QString &propertyName, properties(false).keys()) { foreach (const QString &propertyName, properties(false).keys()) {
if (property(propertyName).hasDotSubProperties()) { if (property(propertyName).hasDotSubProperties()) {
QString propertyType = property(propertyName, false).type(); QString propertyType = property(propertyName, false).isValid() ? property(propertyName, false).type() : QString();
if (propertyType.right(1) == "*") if (propertyType.right(1) == "*")
propertyType = propertyType.left(propertyType.size() - 1).trimmed(); propertyType = propertyType.left(propertyType.size() - 1).trimmed();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment