summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jensb.bache-wiig@nokia.com>2011-09-19 14:15:15 +0200
committerJens Bache-Wiig <jensb.bache-wiig@nokia.com>2011-09-19 14:15:15 +0200
commit4dd06e83363a5bb85d3dcb878017c8262224f50e (patch)
tree0c21be3c51b5e624b8a8a5052634649548b11f70 /src
parenta4dc11b101dd254c2f1a7885d50dc22da78a56e0 (diff)
downloadqtquickcontrols-4dd06e83363a5bb85d3dcb878017c8262224f50e.tar.gz
Fix crash on reload
Task-number: QTCOMPONENTS-794
Diffstat (limited to 'src')
-rw-r--r--src/styleitem/qstyleitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/styleitem/qstyleitem.cpp b/src/styleitem/qstyleitem.cpp
index 2da8fea9..f7beddbc 100644
--- a/src/styleitem/qstyleitem.cpp
+++ b/src/styleitem/qstyleitem.cpp
@@ -759,6 +759,7 @@ void QStyleItem::setElementType(const QString &str)
tb = new QToolBar(mw);
}
m_dummywidget = tb;
+ m_sharedWidget = true;
m_itemType = ToolBar;
} else if (str == "toolbutton") {
static QToolButton *tb = 0;