forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user