Commit 2717aa5a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.Model: Fix rewriter reset function

The rewriter is not anymore in the view list, so the reset function has
to be changed.
parent fbd370e2
......@@ -532,13 +532,10 @@ void ModelPrivate::setAuxiliaryData(const InternalNode::Pointer& node, const QSt
void ModelPrivate::resetModelByRewriter(const QString &description)
RewriterView* rewriterView = 0;
foreach (const QWeakPointer<AbstractView> &view, m_viewList) {
if (!rewriterView)
rewriterView = qobject_cast<RewriterView*>(;
if (rewriterView()) {
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, description, rewriterView->textModifierContent());
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