Commit c2472276 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann

QmlDesigner: Fix crash for master document handling

Happens for dragging a list view in the document.

Change-Id: Id8d00fc880789a0e5e85d455850bb1ec3eaac434
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 3082d5c0
...@@ -126,7 +126,7 @@ void ComponentView::addMasterDocument() ...@@ -126,7 +126,7 @@ void ComponentView::addMasterDocument()
void ComponentView::removeMasterDocument() void ComponentView::removeMasterDocument()
{ {
m_standardItemModel->removeColumn(indexOfMaster()); m_standardItemModel->removeRow(indexOfMaster());
} }
QString ComponentView::descriptionForNode(const ModelNode &node) const QString ComponentView::descriptionForNode(const ModelNode &node) const
......
Markdown is supported
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