Commit 3c0b352b authored by Kai Koehne's avatar Kai Koehne
Browse files

Turn WriteLogger assert into warning until we fixed causes

We should enable it again after we don't know of any errors any more.
parent 04161a4c
......@@ -895,7 +895,10 @@ WriteLocker::WriteLocker(ModelPrivate *model)
: m_model(model)
{
Q_ASSERT(model);
Q_ASSERT(!m_model->m_writeLock);
if (m_model->m_writeLock)
qWarning() << "QmlDesigner: Misbehaving view calls back to model!!!";
// FIXME: Enable it again
// Q_ASSERT(!m_model->m_writeLock);
model->m_writeLock = true;
}
......@@ -903,13 +906,19 @@ WriteLocker::WriteLocker(Model *model)
: m_model(model->m_d)
{
Q_ASSERT(model->m_d);
Q_ASSERT(!m_model->m_writeLock);
if (m_model->m_writeLock)
qWarning() << "QmlDesigner: Misbehaving view calls back to model!!!";
// FIXME: Enable it again
// Q_ASSERT(!m_model->m_writeLock);
m_model->m_writeLock = true;
}
WriteLocker::~WriteLocker()
{
Q_ASSERT(m_model->m_writeLock);
if (!m_model->m_writeLock)
qWarning() << "QmlDesigner: Misbehaving view calls back to model!!!";
// FIXME: Enable it again
// Q_ASSERT(m_model->m_writeLock);
m_model->m_writeLock = false;
}
......
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