Skip to content
Snippets Groups Projects
Commit d5feaae4 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: fix runtime warning


m_controlShape is not in any scene.

Change-Id: I5047bf43cf33be409c7644ff03beee3e04ffbd60
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent aa619e35
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,9 @@ SelectionRectangle::SelectionRectangle(LayerItem *layerItem) ...@@ -48,8 +48,9 @@ SelectionRectangle::SelectionRectangle(LayerItem *layerItem)
SelectionRectangle::~SelectionRectangle() SelectionRectangle::~SelectionRectangle()
{ {
if (m_layerItem) { if (m_controlShape) {
m_layerItem->scene()->removeItem(m_controlShape); if (m_controlShape->scene())
m_controlShape->scene()->removeItem(m_controlShape);
delete m_controlShape; delete m_controlShape;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment