- std::list<ModuleBase_ViewerPrs> aFeatures = myFeatures;
- commit();
- std::list<ModuleBase_ViewerPrs>::const_iterator anIt = aFeatures.begin(), aLast = aFeatures.end();
- // TODO
- /*for (; anIt != aLast; anIt++) {
- FeaturePtr aFeature = (*anIt).feature();
- if (aFeature) {
- emit featureConstructed(aFeature, FM_Deactivation);
- }
- }*/
+ if (commit()) {
+ std::list<ModuleBase_ViewerPrs> aFeatures = myFeatures;
+ std::list<ModuleBase_ViewerPrs>::const_iterator anIt = aFeatures.begin(), aLast =
+ aFeatures.end();
+ for (; anIt != aLast; anIt++) {
+ ObjectPtr aFeature = (*anIt).object();
+ if (aFeature) {
+ emit featureConstructed(aFeature, FM_Deactivation);
+ }
+ }
+ }