//}
}
+ QString aDescription = tr("Delete");
if (!aRefFeatures.empty()) {
QStringList aRefNames;
std::set<FeaturePtr>::const_iterator anIt = aRefFeatures.begin(),
}
if (!aRefNames.empty()) {
QString aNames = aRefNames.join(", ");
+ aDescription += aNames.prepend(" ");
QMainWindow* aDesktop = aWorkshop->desktop();
QMessageBox::StandardButton aRes = QMessageBox::warning(
}
SessionPtr aMgr = ModelAPI_Session::get();
- aMgr->startOperation("DeletePartSet");
+ aMgr->startOperation(aDescription.toStdString());
std::set<FeaturePtr>::const_iterator anIt = aRefFeatures.begin(),
aLast = aRefFeatures.end();
for (; anIt != aLast; anIt++) {