diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-05-04 09:38:15 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-05-09 12:24:06 +0200 |
| commit | faebfdad1f47f83caac29dd1854bdfb2cba9c671 (patch) | |
| tree | 4d52889d0e23196270b5d1456ea89123d1df24f0 /examples/scriptableapplication/pythonutils.cpp | |
| parent | fc5f4eb973593ee5c26247e0502100c462b1fe7b (diff) | |
PySide6: Fix bool(QByteArray(b"")) to return False
bool(QByteArray(b"")) currently returns True due to
QByteArray::isNull(), which is out of line with the Python
convention that "" yields False. Disable the isNull() handling to
fix this.
[ChangeLog][PySide6] The bool cast for QByteArray has been changed
to return False for empty byte arrays to match the expected behavior.
Fixes: PYSIDE-1913
Change-Id: I197bf1553bd0335ded213f377f657cedc2af03fc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions
