Fix crash.
Valentina crashes if input not unique name and then switch and begin edit a formula field. --HG-- branch : develop
This commit is contained in:
parent
e288c3a7ee
commit
4ab42b2cef
|
@ -988,7 +988,15 @@ void DialogIncrements::SaveIncrName(const QString &text)
|
|||
CacheRename(nameField->text(), newName);
|
||||
|
||||
hasChanges = true;
|
||||
updateFlag ? LocalUpdateTree() : nameField->setText(newName);
|
||||
if (updateFlag)
|
||||
{
|
||||
LocalUpdateTree();
|
||||
}
|
||||
else
|
||||
{
|
||||
nameField->setText(newName);
|
||||
doc->LiteParseIncrements();
|
||||
}
|
||||
|
||||
table->blockSignals(true);
|
||||
table->selectRow(row);
|
||||
|
|
Loading…
Reference in New Issue
Block a user