From 66c2ad10c0919f17d772aa6fb60bf36d993537d9 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Fri, 14 Dec 2018 20:00:46 +1100 Subject: [PATCH] Fix a misleading error message typo Also tweaked the message wording slightly, to make it sound more natural. --- src/EditTableDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index 9f5f05cc..70296fec 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -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; }