mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Unexpected object destruction by script engine has been fixed
This commit is contained in:
parent
2500a32023
commit
b3303a7ef6
@ -156,7 +156,7 @@ namespace Const{
|
||||
template <typename T>
|
||||
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
||||
{
|
||||
QJSValue res = e.newQObject(p);
|
||||
QJSValue res = e.toScriptValue(p);
|
||||
return res;
|
||||
}
|
||||
#else
|
||||
|
@ -156,7 +156,7 @@ namespace Const{
|
||||
template <typename T>
|
||||
static inline QJSValue getJSValue(QJSEngine &e, T *p)
|
||||
{
|
||||
QJSValue res = e.newQObject(p);
|
||||
QJSValue res = e.toScriptValue(p);
|
||||
return res;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user