(cpn) Warning if rename to duplicate

This commit is contained in:
dlktdr
2022-09-06 21:04:10 +10:00
committed by Peter Feerick
parent 13bd3b11b7
commit 441d7a25f1
4 changed files with 10 additions and 0 deletions
+2
View File
@@ -60,6 +60,8 @@ bool LabelsModel::setData(const QModelIndex &index, const QVariant &value, int r
this->index(index.row(), 0));
if(selectedModel != -1 && modelsChanged)
emit modelChanged(selectedModel);
} else {
emit renameFault(tr("Unable to rename \"%1\" to \"%2\" the label already exists").arg(replFrom).arg(replTo));
}
return true;
}