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:
luzpaz
2024-09-24 22:31:18 -04:00
committed by Chris Hennes
parent 5852f6c7f6
commit bb66de4739

View File

@@ -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");
}