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

Start to fix support local variable

parent 6c07848b
......@@ -318,10 +318,15 @@ void SieveGlobalVariableLister::loadSetVariable(const QDomElement &element, QStr
}
const QList<QWidget *> lstWidget = widgets();
bool globalVariableFound = false;
for (QWidget *widget : lstWidget) {
SieveGlobalVariableActionWidget *w = static_cast<SieveGlobalVariableActionWidget *>(widget);
if (w->variableName() == variableName) {
w->setVariableValue(variableValue);
globalVariableFound = true;
}
}
if (!globalVariableFound) {
//TODO
}
}
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