Commit 03a3cf9f authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.FormEditor: crash fix

Fix a crash when closing Qt Creator and clear() is called from the
destructor.

Change-Id: I037599653a6ca32e326b2263e7e6f526523e6f8e
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8e267a7e
......@@ -119,6 +119,9 @@ void FormEditorItem::setHighlightBoundingRect(bool highlight)
void FormEditorItem::blurContent(bool blurContent)
{
if (!scene())
return;
if (m_blurContent != blurContent) {
m_blurContent = blurContent;
update();
......
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