diff options
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder.cpp')
-rw-r--r-- | src/qml/compiler/qqmlirbuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp index e9685597f6..ed3b55c2c6 100644 --- a/src/qml/compiler/qqmlirbuilder.cpp +++ b/src/qml/compiler/qqmlirbuilder.cpp @@ -691,9 +691,9 @@ bool IRBuilder::visit(QQmlJS::AST::UiPragma *node) Pragma *pragma = New<Pragma>(); // For now the only valid pragma is Singleton, so lets validate the input - if (!node->pragmaType->name.isNull()) + if (!node->name.isNull()) { - if (QLatin1String("Singleton") == node->pragmaType->name) + if (QLatin1String("Singleton") == node->name) { pragma->type = Pragma::PragmaSingleton; } else { |