Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 1bc89017 authored by Laurent Montel's avatar Laurent Montel 😁

Avoid to create an empty name

parent beaafa19
......@@ -452,7 +452,7 @@ void CustomTemplates::slotItemChanged(QTreeWidgetItem *item, int column)
if (item) {
CustomTemplateItem *vitem = static_cast<CustomTemplateItem *>(item);
if (column == 1) {
const QString newName = vitem->text(1);
const QString newName = vitem->text(1).trimmed();
if (!newName.isEmpty()) {
const QString oldName = vitem->oldName();
if (nameAlreadyExists(newName, item)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment