Fix bug 668 - "QFileSystemModel setRootPath stops application from quitting."
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
f25d227d6e
commit
7909d294f5
3 changed files with 24 additions and 0 deletions
|
|
@ -113,7 +113,9 @@ static void destructionVisitor(SbkObject* pyObj, void* data)
|
|||
|
||||
if (pyObj != pyQApp && PyObject_TypeCheck(pyObj, pyQObjectType)) {
|
||||
if (Shiboken::Object::hasOwnership(pyObj) && Shiboken::Object::isValid(pyObj, false)) {
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
Shiboken::callCppDestructor<QObject>(Shiboken::Object::cppPointer(pyObj, pyQObjectType));
|
||||
Py_END_ALLOW_THREADS
|
||||
Shiboken::Object::setValidCpp(pyObj, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue