Fix a misleading error message typo

Also tweaked the message wording slightly, to make it sound more
natural.
This commit is contained in:
Justin Clift
2018-12-14 20:00:46 +11:00
parent 256ae36a13
commit 66c2ad10c0

View File

@@ -469,8 +469,8 @@ void EditTableDialog::itemChanged(QTreeWidgetItem *item, int column)
if(rowcount != uniquecount)
{
// There is a NULL value, so print an error message, uncheck the combobox, and return here
QMessageBox::information(this, qApp->applicationName(), tr("Column '%1' has no unique data.\n").arg(field.name())
+ tr("This makes it impossible to set this flag. Please change the table data first."));
QMessageBox::information(this, qApp->applicationName(), tr("Column '%1' has duplicate data.\n").arg(field.name())
+ tr("This makes it impossible to enable the 'Unique' flag. Please remove the duplicate data, which will allow the 'Unique' flag to then be enabled."));
item->setCheckState(column, Qt::Unchecked);
return;
}