Commit 4dd06e83 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fix crash on reload

Task-number: QTCOMPONENTS-794
parent a4dc11b1
No related merge requests found
Showing with 1 addition and 0 deletions
...@@ -759,6 +759,7 @@ void QStyleItem::setElementType(const QString &str) ...@@ -759,6 +759,7 @@ void QStyleItem::setElementType(const QString &str)
tb = new QToolBar(mw); tb = new QToolBar(mw);
} }
m_dummywidget = tb; m_dummywidget = tb;
m_sharedWidget = true;
m_itemType = ToolBar; m_itemType = ToolBar;
} else if (str == "toolbutton") { } else if (str == "toolbutton") {
static QToolButton *tb = 0; static QToolButton *tb = 0;
......
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