summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-06-21 13:25:49 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-06-21 13:25:49 (GMT)
commitb5af8fbbdc26fa50f40dad2c159b6b64827fa431 (patch)
treed1053a46fcb0bebc1397ab1bd07c779a79854352 /demos/qtdemo
parent6cb4929eb25191dd6d0dfe17ed4814e43acab788 (diff)
downloadQt-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.qml3
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;
}}
}