Skip to content

Commit

Permalink
AggregatedPropertyModel: Fix wrong insertion
Browse files Browse the repository at this point in the history
Broke while porting to std::unordered_map from QHash.

QHash::insert() assigns or inserts while std::unordered_map only
inserts.

Fixes #870
Fixes #834
  • Loading branch information
Waqar144 committed Nov 17, 2023
1 parent c5d116e commit f937357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/aggregatedpropertymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void AggregatedPropertyModel::addPropertyAdaptor(PropertyAdaptor *adaptor) const

QVector<PropertyAdaptor *> children;
children.resize(adaptor->count());
m_parentChildrenMap.insert({ adaptor, children });
m_parentChildrenMap[adaptor] = children;
connect(adaptor, &PropertyAdaptor::propertyChanged, this, &AggregatedPropertyModel::propertyChanged);
connect(adaptor, &PropertyAdaptor::propertyAdded, this, &AggregatedPropertyModel::propertyAdded);
connect(adaptor, &PropertyAdaptor::propertyRemoved, this, &AggregatedPropertyModel::propertyRemoved);
Expand Down

0 comments on commit f937357

Please sign in to comment.