Skip to content

Commit

Permalink
Gui: Remove newline from dialog string
Browse files Browse the repository at this point in the history
This commit removes superflous newline that disrupts the flow of the sentence displayed in the VarSet dialog. See FreeCAD#16776
  • Loading branch information
luzpaz committed Nov 13, 2024
1 parent 4bc8cd6 commit 6b915fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Gui/DlgAddPropertyVarSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,10 @@ class CreatePropertyException : public std::exception {
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, \n"
"underscore, and must not start with a digit."));
clearEditors(!CLEAR_NAME);
throw CreatePropertyException("Invalid name");
}
Expand Down

0 comments on commit 6b915fb

Please sign in to comment.