diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-06-21 13:25:49 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-06-21 13:25:49 (GMT) |
commit | b5af8fbbdc26fa50f40dad2c159b6b64827fa431 (patch) | |
tree | d1053a46fcb0bebc1397ab1bd07c779a79854352 /demos/qtdemo | |
parent | 6cb4929eb25191dd6d0dfe17ed4814e43acab788 (diff) | |
download | Qt-b5af8fbbdc26fa50f40dad2c159b6b64827fa431.zip Qt-b5af8fbbdc26fa50f40dad2c159b6b64827fa431.tar.gz Qt-b5af8fbbdc26fa50f40dad2c159b6b64827fa431.tar.bz2 |
Avoid printing a warning
Diffstat (limited to 'demos/qtdemo')
-rw-r--r-- | demos/qtdemo/qmlShell.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/qtdemo/qmlShell.qml b/demos/qtdemo/qmlShell.qml index 4ac6c97..5c5f96c 100644 --- a/demos/qtdemo/qmlShell.qml +++ b/demos/qtdemo/qmlShell.qml @@ -81,7 +81,8 @@ Item { loader.item.width = 640; if(loader.item.height > 480) loader.item.height = 480; - loader.item.inAnotherDemo = true; + if(loader.item.inAnotherDemo != undefined) + loader.item.inAnotherDemo = true; }} } |