Skip to content

Commit

Permalink
Gui: remove duplicated PropertyModel signal of dataChanged()
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jun 8, 2020
1 parent 036f6ad commit 42cb7bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Gui/propertyeditor/PropertyModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,12 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props)
auto flushChanges = [&]() {
if (beginChange < 0)
return;
dataChanged(this->index(beginChange,0,midx), this->index(endChange,1,midx));
(void)endChange;
// There is no need to signal dataChange(), because PropertyEditor
// will call PropertyModel::updateProperty() on any property
// changes.
//
// dataChanged(this->index(beginChange,0,midx), this->index(endChange,1,midx));
beginChange = -1;
};

Expand Down

0 comments on commit 42cb7bb

Please sign in to comment.