aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside/pyside.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/libpyside/pyside.cpp')
-rw-r--r--sources/pyside2/libpyside/pyside.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside2/libpyside/pyside.cpp b/sources/pyside2/libpyside/pyside.cpp
index 7d05f45a..d4e867c6 100644
--- a/sources/pyside2/libpyside/pyside.cpp
+++ b/sources/pyside2/libpyside/pyside.cpp
@@ -50,6 +50,7 @@
#include "dynamicqmetaobject.h"
#include "destroylistener.h"
+#include <qapp_macro.h>
#include <basewrapper.h>
#include <conversions.h>
#include <sbkconverter.h>
@@ -174,6 +175,8 @@ void destroyQCoreApplication()
Py_BEGIN_ALLOW_THREADS
delete app;
Py_END_ALLOW_THREADS
+ // PYSIDE-571: make sure to create a singleton deleted qApp.
+ MakeSingletonQAppWrapper(NULL);
}
struct TypeUserData {