mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
project database : minor
This commit is contained in:
@@ -173,11 +173,17 @@ void projectDataBase::elementInfoChanged(Element *element)
|
||||
|
||||
void projectDataBase::elementInfoChanged(QList<Element *> elements)
|
||||
{
|
||||
m_data_base.transaction();
|
||||
this->blockSignals(true);
|
||||
//Block signal for not emit dataBaseUpdated at
|
||||
//each call of the method elementInfoChanged(Element *element)
|
||||
|
||||
m_data_base.transaction();
|
||||
for (auto elmt : elements) {
|
||||
elementInfoChanged(elmt);
|
||||
}
|
||||
m_data_base.commit();
|
||||
|
||||
this->blockSignals(false);
|
||||
emit dataBaseUpdated();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user