Differential D26003 Diff 71622 src/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadataexists.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadataexists.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 99 | if (tagName == QLatin1String("str")) { | |||
---|---|---|---|---|---|
100 | const QString tagValue = element.readElementText(); | 100 | const QString tagValue = element.readElementText(); | ||
101 | if (index == 0) { | 101 | if (index == 0) { | ||
102 | KSieveUi::AbstractMoveImapFolderWidget *mailbox = w->findChild<KSieveUi::AbstractMoveImapFolderWidget *>(QStringLiteral("mailbox")); | 102 | KSieveUi::AbstractMoveImapFolderWidget *mailbox = w->findChild<KSieveUi::AbstractMoveImapFolderWidget *>(QStringLiteral("mailbox")); | ||
103 | mailbox->setText(tagValue); | 103 | mailbox->setText(tagValue); | ||
104 | } else if (index == 1) { | 104 | } else if (index == 1) { | ||
105 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value")); | 105 | QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value")); | ||
106 | value->setText(AutoCreateScriptUtil::quoteStr(tagValue)); | 106 | value->setText(AutoCreateScriptUtil::quoteStr(tagValue)); | ||
107 | } else { | 107 | } else { | ||
108 | tooManyArgument(tagName, index, 2, error); | 108 | tooManyArguments(tagName, index, 2, error); | ||
109 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionServerMetaDataExists::setParamWidgetValue to many attribute " << index; | 109 | qCDebug(LIBKSIEVE_LOG) << " SieveConditionServerMetaDataExists::setParamWidgetValue to many attribute " << index; | ||
110 | } | 110 | } | ||
111 | ++index; | 111 | ++index; | ||
112 | } else if (tagName == QLatin1String("crlf")) { | 112 | } else if (tagName == QLatin1String("crlf")) { | ||
113 | element.skipCurrentElement(); | 113 | element.skipCurrentElement(); | ||
114 | //nothing | 114 | //nothing | ||
115 | } else if (tagName == QLatin1String("comment")) { | 115 | } else if (tagName == QLatin1String("comment")) { | ||
116 | commentStr = AutoCreateScriptUtil::loadConditionComment(commentStr, element.readElementText()); | 116 | commentStr = AutoCreateScriptUtil::loadConditionComment(commentStr, element.readElementText()); | ||
Show All 16 Lines |