aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-09-30 13:14:20 +0200
committerChristian Tismer <tismer@stackless.com>2019-09-30 15:18:45 +0200
commit63e46f6a0a80cda662be9350923a9e080fac7b6f (patch)
tree248211da0b9ce2542a2d927f8efc4cb7e934c102 /sources/shiboken2/tests/samplebinding/typesystem_sample.xml
parent142d75c30ac18461b350c543d6eb43df1ae60aa4 (diff)
Fix bad shutdown effect on QApplication.instance()
When app = QtWidgets.QApplication.instance() is used before a QApplication has been created, the qApp code sees no qApp instance in C++ and assumes a shutdown. This patch keeps track of QApplication being created and behaves correctly on that aspect. It is still unsolved that QtCore.QObject.staticMetaObject gets deleted on a qApp shutdown, which is too much. I think this can be handled in another patch if at all, since the shutdown / recreate feature is undocumented and of little use. Change-Id: I140b6dba45f7cd337580373dbf72bc6d0a625fea Fixes: PYSIDE-1093 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/typesystem_sample.xml')
0 files changed, 0 insertions, 0 deletions