forked from qt-creator/qt-creator
QmlDesigner: Fix rendering rendering of items
The else clause was wrong. It should be that it is not a node instance but it was that it was not a dirty node instance. Change-Id: I657bbc03826edcb9a1ea46f9c3b44404b2d3f31a Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -83,9 +83,9 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
|
||||
if (quickView() && nodeInstanceClient()->bytesToWrite() < 10000) {
|
||||
foreach (QQuickItem *item, allItems()) {
|
||||
if (item) {
|
||||
if (hasInstanceForObject(item)
|
||||
&& DesignerSupport::isDirty(item, DesignerSupport::ContentUpdateMask)) {
|
||||
m_dirtyInstanceSet.insert(instanceForObject(item));
|
||||
if (hasInstanceForObject(item)) {
|
||||
if (DesignerSupport::isDirty(item, DesignerSupport::ContentUpdateMask))
|
||||
m_dirtyInstanceSet.insert(instanceForObject(item));
|
||||
} else if (DesignerSupport::isDirty(item, DesignerSupport::AllMask)) {
|
||||
ServerNodeInstance ancestorInstance = findNodeInstanceForItem(item->parentItem());
|
||||
if (ancestorInstance.isValid())
|
||||
|
Reference in New Issue
Block a user