Block only the propertychanged signal in the const_string_array property manager.

This commit is contained in:
dfighter1985 2014-07-12 00:38:35 +02:00
parent 3b713d152a
commit 790ac4524f

View file

@ -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 */