@@ -537,10 +537,10 void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i | |||
|
537 | 537 | case PythonQtMethodInfo::Variant: |
|
538 | 538 | { |
|
539 | 539 | QVariant v = PyObjToQVariant(obj); |
|
540 | if (v.isValid()) { | |
|
540 | // the only case where conversion can fail it None and we want to pass that to, e.g. setProperty(), | |
|
541 | // so we do not check v.isValid() here | |
|
541 | 542 |
|
|
542 | 543 |
|
|
543 | } | |
|
544 | 544 | break; |
|
545 | 545 | default: |
|
546 | 546 | { |
General Comments 0
You need to be logged in to leave comments.
Login now