diff options
author | Paulo Alcantara <paulo.alcantara@openbossa.org> | 2011-10-19 16:30:36 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:14 -0300 |
commit | b7f593d99e2c02ddf8bde439df43b98c3d1caa0b (patch) | |
tree | e7e7d1b34f298ffe4dcb56e0c47cd24dae5cd6bc /PySide/QtScript/typesystem_script.xml | |
parent | 6acb5f9bc77d583f2d9a1fcd896ace193019b4fb (diff) |
Fix bug 1022 - "RuntimeError: maximum recursion depth exceeded while getting the str of an object"
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Signed-off-by: Paulo Alcantara <paulo.alcantara@openbossa.org>
Diffstat (limited to 'PySide/QtScript/typesystem_script.xml')
-rw-r--r-- | PySide/QtScript/typesystem_script.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PySide/QtScript/typesystem_script.xml b/PySide/QtScript/typesystem_script.xml index 4dc3930cf..af2f198c5 100644 --- a/PySide/QtScript/typesystem_script.xml +++ b/PySide/QtScript/typesystem_script.xml @@ -66,7 +66,8 @@ QString format = QString().sprintf("%s(\"%s\")", ((PyObject*)%PYSELF)->ob_type->tp_name, qPrintable(%CPPSELF.toString())); %PYARG_0 = Shiboken::String::fromCString(qPrintable(format)); } else { - %PYARG_0 = PyObject_Str((PyObject*)%PYSELF); + %PYARG_0 = Shiboken::String::fromCString( + ((PyObject* )%PYSELF)->ob_type->tp_name); } </inject-code> </add-function> |