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

Remove extra space when we select first element

parent b9b3bd63
......@@ -115,7 +115,11 @@ QString SieveActionAddHeader::code(QWidget *w) const
const QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("valueedit"));
const QString valueStr = value->text();
if (position.isEmpty()) {
return QStringLiteral("addheader \"%1\" \"%2\";").arg(headerStr, valueStr);
} else {
return QStringLiteral("addheader %1 \"%2\" \"%3\";").arg(position, headerStr, valueStr);
QString SieveActionAddHeader::help() const
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