Commit cddc25b0 authored by Laurent Montel's avatar Laurent Montel 😁

Don't add include empty name

parent d1eeb1fb
...@@ -116,7 +116,7 @@ void SieveIncludeActionWidget::loadScript(const QDomElement &element, QString &e ...@@ -116,7 +116,7 @@ void SieveIncludeActionWidget::loadScript(const QDomElement &element, QString &e
void SieveIncludeActionWidget::generatedScript(QString &script) void SieveIncludeActionWidget::generatedScript(QString &script)
{ {
const QString includeName = mIncludeName->text(); const QString includeName = mIncludeName->text();
if (includeName.isEmpty()) { if (includeName.trimmed().isEmpty()) {
return; return;
} }
script += QLatin1String("include "); script += QLatin1String("include ");
......
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