Commit 133a40d6 authored by Laurent Montel's avatar Laurent Montel 😁

Start fixing comparator support

parent 488aba01
......@@ -101,8 +101,12 @@ bool SieveConditionHeader::setParamWidgetValue(const QDomElement &element, QWidg
const QString tagName = e.tagName();
if (tagName == QLatin1String("tag")) {
const QString tagValue = e.text();
if (tagValue == QLatin1String("comparator")) {
qCWarning(LIBKSIEVE_LOG) << " comparator support not implemented yet!";
} else {
SelectMatchTypeComboBox *selectMatchCombobox = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtypecombobox"));
selectMatchCombobox->setCode(AutoCreateScriptUtil::tagValueWithCondition(tagValue, notCondition), name(), error);
}
} else if (tagName == QLatin1String("str")) {
if (index == 0) {
SelectHeaderTypeComboBox *headerType = w->findChild<SelectHeaderTypeComboBox *>(QStringLiteral("headertype"));
......
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