Commit 321c666f authored by Laurent Montel's avatar Laurent Montel 😁

Just one autotest failed now

parent 0922cd3e
......@@ -273,7 +273,7 @@ void SieveActionWidget::setLocaleVariable(const SieveGlobalVariableActionWidget:
}
} else {
//error += i18n("Script contains unsupported feature \"%1\"", actionName) + QLatin1Char('\n');
//qCDebug(LIBKSIEVE_LOG) << "Condition " << actionName << " not supported";
//qCDebug(LIBKSIEVE_LOG) << "Action " << actionName << " not supported";
}
}
......@@ -290,7 +290,8 @@ bool SieveActionWidget::setAction(const QString &actionName, QXmlStreamReader &e
action->setComment(comment);
} else {
error += i18n("Script contains unsupported feature \"%1\"", actionName) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << "Condition " << actionName << " not supported";
qCDebug(LIBKSIEVE_LOG) << "Action " << actionName << " not supported";
element.skipCurrentElement();
}
return result;
}
......
......@@ -115,7 +115,7 @@ bool SieveConditionBody::setParamWidgetValue(QXmlStreamReader &element, QWidget
if (index == 0) {
tagValueList << AutoCreateScriptUtil::tagValue(tagValue);
} else if (index == 1) {
tagValueList << AutoCreateScriptUtil::tagValueWithCondition(element.readElementText(), notCondition);
tagValueList << AutoCreateScriptUtil::tagValueWithCondition(tagValue, notCondition);
} else {
tooManyArgument(tagName, index, 2, error);
qCDebug(LIBKSIEVE_LOG) << " SieveConditionBody::setParamWidgetValue too many argument " << index;
......@@ -141,7 +141,6 @@ bool SieveConditionBody::setParamWidgetValue(QXmlStreamReader &element, QWidget
if (!commentStr.isEmpty()) {
setComment(commentStr);
}
QString errorStr;
if (strValue.count() == 1) {
SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
......
......@@ -237,6 +237,7 @@ void SieveConditionWidget::setCondition(const QString &conditionName, QXmlStream
} else {
error += i18n("Script contains unsupported feature \"%1\"", conditionName) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << "Condition " << conditionName << " not supported";
element.skipCurrentElement();
}
}
......
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