-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
bool isNameUpdated = false;
AttributeSelectionPtr aSelect = aData->selection(attributeID());
if (aSelect) {
- myTextLine->setText(QString::fromStdString(aSelect->namingName(getDefaultValue())));
+ std::string aDefault = translate(getDefaultValue()).toStdString();
+ myTextLine->setText(QString::fromStdString(aSelect->namingName(aDefault)));
isNameUpdated = true;
}
if (!isNameUpdated) {
myTextLine->setText(QString::fromStdString(anAttrName));
}
else {
- myTextLine->setText(getDefaultValue().c_str());
+ myTextLine->setText(translate(getDefaultValue()));
}
}
}
}
+
+//********************************************************************
+bool ModuleBase_WidgetShapeSelector::isModified() const
+{
+ return !myTextLine->text().isEmpty();
+}
\ No newline at end of file