summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvme.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-06-17 05:44:46 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-06-17 05:44:46 (GMT)
commit00d6d725ed0c3eb7d2bc0d0187e66c0ee55ef4a7 (patch)
treeb181266d01eacefce6ab2aeb10fc17a4553b1ed5 /src/declarative/qml/qmlvme.cpp
parent4b29e52cad8d719d382110349e29c127db45036a (diff)
downloadQt-00d6d725ed0c3eb7d2bc0d0187e66c0ee55ef4a7.zip
Qt-00d6d725ed0c3eb7d2bc0d0187e66c0ee55ef4a7.tar.gz
Qt-00d6d725ed0c3eb7d2bc0d0187e66c0ee55ef4a7.tar.bz2
Don't defer properties if an id has been set
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r--src/declarative/qml/qmlvme.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index be09190..a3ee4e5 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -778,13 +778,15 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, QmlCompiledComp
case QmlInstruction::Defer:
{
- QObject *target = stack.top();
- QmlInstanceDeclarativeData *data =
- QmlInstanceDeclarativeData::get(target, true);
- comp->addref();
- data->deferredComponent = comp;
- data->deferredIdx = ii;
- ii += instr.defer.deferCount;
+ if (instr.defer.deferCount) {
+ QObject *target = stack.top();
+ QmlInstanceDeclarativeData *data =
+ QmlInstanceDeclarativeData::get(target, true);
+ comp->addref();
+ data->deferredComponent = comp;
+ data->deferredIdx = ii;
+ ii += instr.defer.deferCount;
+ }
}
break;