Commit d022d2de authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add lock icon when it's default template (so we can't edit/remove it)

parent be231d19
......@@ -55,6 +55,9 @@ public:
QListWidgetItem *item = new QListWidgetItem(name, q);
item->setData(TemplateListWidget::Text, text);
item->setData(TemplateListWidget::DefaultTemplate, isDefaultTemplate);
if (isDefaultTemplate) {
item->setIcon(QIcon::fromTheme(QStringLiteral("lock")));
}
q->setCurrentItem(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