summaryrefslogtreecommitdiff
path: root/src/qml/qml/qqmlscriptstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlscriptstring.cpp')
-rw-r--r--src/qml/qml/qqmlscriptstring.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlscriptstring.cpp b/src/qml/qml/qqmlscriptstring.cpp
index d478136085..d263587045 100644
--- a/src/qml/qml/qqmlscriptstring.cpp
+++ b/src/qml/qml/qqmlscriptstring.cpp
@@ -128,7 +128,9 @@ Returns whether the QQmlScriptString is empty.
*/
bool QQmlScriptString::isEmpty() const
{
- if (!d || !d->script.isEmpty())
+ if (!d)
+ return true;
+ if (!d->script.isEmpty())
return false;
return d->bindingId == -1;
}