diff --git a/src/CurveCreator/CurveCreator_TreeView.cxx b/src/CurveCreator/CurveCreator_TreeView.cxx index 6a8ecec53..89f2606c3 100644 --- a/src/CurveCreator/CurveCreator_TreeView.cxx +++ b/src/CurveCreator/CurveCreator_TreeView.cxx @@ -212,9 +212,13 @@ int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const void CurveCreator_TreeViewModel::setCurve( CurveCreator_ICurve* theCurve ) { - myCurve = theCurve; #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + myCurve = theCurve; reset(); +#else + beginResetModel(); + myCurve = theCurve; + endResetModel(); #endif }