mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
The update of data sources was added if they contain changed variables
This commit is contained in:
@@ -216,7 +216,11 @@ QScriptValue setVariable(QScriptContext* pcontext, QScriptEngine* /*pengine*/){
|
||||
ScriptEngineManager* sm = qscriptvalue_cast<ScriptEngineManager*>(pcontext->callee().data());
|
||||
DataSourceManager* dm = sm->dataManager();
|
||||
|
||||
dm->changeVariable(name,value);
|
||||
if (dm->containsVariable(name))
|
||||
dm->changeVariable(name,value);
|
||||
else
|
||||
dm->addVariable(name, value);
|
||||
|
||||
return QScriptValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user