diff options
author | Christian Tismer <tismer@stackless.com> | 2020-11-11 15:11:47 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-11-11 15:08:22 +0000 |
commit | 6beb602f897669796700e6a230bc8503bd495e8f (patch) | |
tree | de2dde2c927d9aa2525c2c6294622ff140ec5acd /sources/pyside6 | |
parent | 434b5b0cc2c44d0224281bbdb234976483500b44 (diff) |
pyside6: make sure that class properties trigger feature switching
There was a call to the switching function missing in the metatype.
Task-number: PYSIDE-1019
Change-Id: Ia556e3c562006a267b6a0a16b68cd366981f5d2d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r-- | sources/pyside6/libpyside/class_property.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/class_property.cpp b/sources/pyside6/libpyside/class_property.cpp index edbb63769..35375d0f3 100644 --- a/sources/pyside6/libpyside/class_property.cpp +++ b/sources/pyside6/libpyside/class_property.cpp @@ -122,6 +122,7 @@ static int SbkObjectType_meta_setattro(PyObject *obj, PyObject *name, PyObject * // Use `_PepType_Lookup()` instead of `PyObject_GetAttr()` in order to get the raw // descriptor (`property`) instead of calling `tp_descr_get` (`property.__get__()`). auto type = reinterpret_cast<PyTypeObject *>(obj); + PySide::Feature::Select(type); PyObject *descr = _PepType_Lookup(type, name); // The following assignment combinations are possible: |