Block only the propertychanged signal in the const_string_array property manager.

--HG--
branch : gsoc2014-dfighter
hg/feature/cdb-packed
dfighter1985 11 years ago
parent 8f8b4fae65
commit 3ad5ffee15

@ -471,6 +471,14 @@ void PropertyEditorWidget::blockSignalsOfProperties(bool block)
m_boolManager->blockSignals(block);
m_enumManager->blockSignals(block);
m_stringArrayManager->blockSignals(block);
m_constStrArrPropMgr->blockSignals(block);
if( block )
{
disconnect(m_constStrArrPropMgr, SIGNAL(propertyChanged(QtProperty *)), this, SLOT(propertyChanged(QtProperty *)));
}
else
{
connect(m_constStrArrPropMgr, SIGNAL(propertyChanged(QtProperty *)), this, SLOT(propertyChanged(QtProperty *)));
}
}
} /* namespace WorldEditor */

Loading…
Cancel
Save