Cppcheck warning.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2017-04-14 15:59:13 +03:00
parent 0ddc935d9a
commit 5c5db3d7e9

View File

@ -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))
{