Cppcheck warning.
--HG-- branch : release
This commit is contained in:
parent
0ddc935d9a
commit
5c5db3d7e9
|
@ -574,8 +574,7 @@ void DialogIncrements::SaveIncrName(const QString &text)
|
|||
|
||||
const QTableWidgetItem *nameField = ui->tableWidgetIncrement->item(row, 0);
|
||||
|
||||
QString newName = text;
|
||||
newName.isEmpty() ? newName = GetCustomName() : newName = CustomIncrSign + newName;
|
||||
QString newName = text.isEmpty() ? GetCustomName() : CustomIncrSign + text;
|
||||
|
||||
if (not data->IsUnique(newName))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user