##// END OF EJS Templates
removed wrong conversion to QVariant when the underlying type id is unknown...
florianlink -
r43:04827ba1f262
parent child
Show More
@@ -498,7 +498,8 return Py_None;
498 498 }
499 499 }
500 500 }
501
501 // if no type id is available, conversion to a QVariant makes no sense/is not possible
502 if (info.typeId != PythonQtMethodInfo::Unknown) {
502 503 // for all other types, we use the same qvariant conversion and pass out the constData of the variant:
503 504 QVariant v = PyObjToQVariant(obj, info.typeId);
504 505 if (v.isValid()) {
@@ -508,6 +509,7 return Py_None;
508 509 }
509 510 }
510 511 }
512 }
511 513 return ptr;
512 514 }
513 515
General Comments 0
You need to be logged in to leave comments. Login now