Commit 71840d93 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Change the visiblity only if the formeditor item exists

Task-Number: BAUHAUS-673
Reviewed-by: kkoehne
parent cdeee01c
......@@ -413,7 +413,7 @@ void FormEditorView::nodeSlidedToIndex(const NodeListProperty &listProperty, int
void FormEditorView::auxiliaryDataChanged(const ModelNode &node, const QString &name, const QVariant &data)
QmlModelView::auxiliaryDataChanged(node, name, data);
if (name == "invisible") {
if (name == "invisible" && m_scene->hasItemForQmlItemNode(QmlItemNode(node))) {
FormEditorItem *item(m_scene->itemForQmlItemNode(QmlItemNode(node)));
bool isInvisible = data.toBool();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment