Commit 7f3ce472 authored by Agata Cacko's avatar Agata Cacko

Fix removing templates in Create template dialog

Before this commit, removing templates in Create template
dialog was possible only when clicking OK - which meant that
you had to create one template to remove another.
Now they are removed completely as soon as the user
confirms their will to remove them.

BUG:376675
parent 71126cc3
......@@ -479,9 +479,9 @@ void KisTemplateCreateDia::slotRemove() {
}
delete item;
item=0;
enableButtonOk(true);
d->m_name->setFocus();
d->m_changed=true;
d->m_tree.writeTemplateTree();
}
void KisTemplateCreateDia::updatePixmap() {
......
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