summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-26 07:42:15 +0200
committerMontel Laurent <[email protected]>2017-06-26 07:42:15 +0200
commitcee0901a137273fc7e8c017d8e2b299867bc53b1 (patch)
tree3b6f54658468f8c61fb6a10ae909d6ed5cc1f3c2
parent719ad72ace1c137582d4babdd1b6d2b7e6b11dd6 (diff)
Skip laod
-rw-r--r--src/ksieveui/autocreatescripts/sieveactions/sieveactionkeep.cpp1
-rw-r--r--src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ksieveui/autocreatescripts/sieveactions/sieveactionkeep.cpp b/src/ksieveui/autocreatescripts/sieveactions/sieveactionkeep.cpp
index 8c10063..c9b39e0 100644
--- a/src/ksieveui/autocreatescripts/sieveactions/sieveactionkeep.cpp
+++ b/src/ksieveui/autocreatescripts/sieveactions/sieveactionkeep.cpp
@@ -90,6 +90,7 @@ bool SieveActionKeep::setParamWidgetValue(QXmlStreamReader &element, QWidget *w,
flagsWidget->setFlags(QStringList() << element.readElementText());
} else if (tagName == QLatin1String("tag") && element.readElementText() == QLatin1String("flags")) {
//nothing :)
+ //Don't skip here.
} else if (tagName == QLatin1String("crlf")) {
element.skipCurrentElement();
//nothing
diff --git a/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp b/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
index eb1abf1..785a3d2 100644
--- a/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
+++ b/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
@@ -110,6 +110,7 @@ void SieveForEveryPartWidget::loadScript(QXmlStreamReader &element, QString &err
//It's when name is empty
} else if (tagName == QLatin1String("crlf")) {
//Nothing
+ element.skipCurrentElement();
} else {
error += i18n("Unknown tag \"%1\" during loading loop \"for\"", tagName.toString()) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " SieveForEveryPartWidget::loadScript unknown tagName " << tagName;