Fix regression.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-02-12 12:36:51 +02:00
parent 26578c0fba
commit 4bfe5201ad

View File

@ -224,9 +224,9 @@ void CheckPointLabel(QDialog *dialog, QLineEdit* edit, QLabel *labelEditNamePoin
SCASSERT(edit != nullptr) SCASSERT(edit != nullptr)
SCASSERT(labelEditNamePoint != nullptr) SCASSERT(labelEditNamePoint != nullptr)
QString name = edit->text(); const QString name = edit->text();
QRegularExpression rx(NameRegExp()); QRegularExpression rx(NameRegExp());
if (name.isEmpty() || (not (pointName != name && data->IsUnique(name))) || not rx.match(name).hasMatch()) if (name.isEmpty() || (pointName != name && not data->IsUnique(name)) || not rx.match(name).hasMatch())
{ {
flag = false; flag = false;
ChangeColor(labelEditNamePoint, errorColor); ChangeColor(labelEditNamePoint, errorColor);