diff options
| author | Christian Tismer <tismer@stackless.com> | 2022-02-05 18:24:50 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2022-02-08 16:08:28 +0100 |
| commit | 0a12054f64f94807f711d35d26091b64f1589b3b (patch) | |
| tree | 1986479d66f1843fab25f818611e4bb1f62cf8e5 /sources/pyside6/libpysideqml/pysideqml.cpp | |
| parent | 8019ce52080ed51cd053d480c6c61d667469fc25 (diff) | |
PySide: Leave the underscore variable alone in QApplication
QApplication has special treatment through the extra rules
of only one QApplication instance may exist. To ensure this,
different approaches were used.
The first attempt was using refcounts and made sure that
"del qApp" really destroys the QApplication instance.
This did not work in interactive mode because the automatic
underscore variable creates cycles.
As a simple workaround, we assigned None to underscore
when a QApplication was created. When moving to the new
concept of an explicit shutdown() call, this assignment
was forgotten to remove.
[ChangeLog][PySide6] A left-over replacement of the interactive
underscore variable when QApplication is created was removed.
Change-Id: I78f3e3714531d599c4b5b76f956b1d631014ad94
Pick-to: 6.2
Fixes: PYSIDE-1758
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqml.cpp')
0 files changed, 0 insertions, 0 deletions
