Gui: Remove newline from dialog string
This commit removes superflous newline that disrupts the flow of the sentence displayed in the VarSet dialog. See #16776
This commit is contained in:
@@ -398,9 +398,10 @@ private:
|
||||
void DlgAddPropertyVarSet::checkName() {
|
||||
std::string name = ui->lineEditName->text().toStdString();
|
||||
if(name.empty() || name != Base::Tools::getIdentifier(name)) {
|
||||
critical(QObject::tr("Invalid name"),
|
||||
QObject::tr("The property name must only contain alpha numericals,\n"
|
||||
"underscore, and must not start with a digit."));
|
||||
QMessageBox::critical(getMainWindow(),
|
||||
QObject::tr("Invalid name"),
|
||||
QObject::tr("The property name must only contain alpha numericals, "
|
||||
"underscore, and must not start with a digit."));
|
||||
clearEditors(!CLEAR_NAME);
|
||||
throw CreatePropertyException("Invalid name");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user