diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-13 14:16:27 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-14 11:53:38 +0100 |
| commit | c5a601ca958cbe0fd72c1201bddab872e353dfcf (patch) | |
| tree | ea72a725a4d9f3aea3355a1ceecaa20b30ad6da1 /sources/pyside6/libpyside | |
| parent | b33d8e3ff47c5027d0147f74c35c7e4b4f874ca5 (diff) | |
Fix crash when adding None to a QLayout
This caused a crash in PySide's addLayoutOwnership() code snippet,
whereas Qt errors out with a warning.
Guard all input parameters of the layout snippets with a check.
Rename the snippet "addownership-0" which is used for the itemAt()
functions "addownership-item-at" for clarity and add a check there.
Pick-to: 6.6 6.5
Fixes: PYSIDE-2638
Change-Id: Ia89532059e7a27cc38d790a0d17e24e19d68887f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/libpyside')
0 files changed, 0 insertions, 0 deletions
