summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2012-10-10 11:11:43 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2012-10-10 11:26:06 +0200
commit587adf50847a5c1743756d53d244323da54a053b (patch)
treef53a4d80a24837e5ebfbabd3a598bab24348c014 /src/libs/qmljs/qmljscheck.cpp
parent9bf725af2c96364608bf1761e69d171ca4aac87b (diff)
downloadqt-creator-587adf50847a5c1743756d53d244323da54a053b.tar.gz
QmlJSEditor: crash fix
The typeStack has to stay in sync and initializers for properties do not have a type. Change-Id: I49f7d1679d083c994fd692a1c36e33ba7fce17ff Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index 0fe58a6d15..af670d4d88 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -618,8 +618,7 @@ bool Check::visit(UiObjectInitializer *)
m_idStack.push(StringSet());
}
- if (!typeName.isEmpty() && typeName.at(0).isUpper())
- m_typeStack.push(typeName);
+ m_typeStack.push(typeName);
if (m_idStack.isEmpty())
m_idStack.push(StringSet());