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

Don't enable add button when str is empty

parent 7e0eccf4
......@@ -125,7 +125,7 @@ CustomTemplates::~CustomTemplates()
void CustomTemplates::slotNameChanged(const QString &text)
{
mUi->mAdd->setEnabled(!text.isEmpty());
mUi->mAdd->setEnabled(!text.trimmed().isEmpty());
}
QString CustomTemplates::indexToType(int index)
......
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