aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-11-11 15:11:47 +0100
committerChristian Tismer <tismer@stackless.com>2020-11-11 15:08:22 +0000
commit6beb602f897669796700e6a230bc8503bd495e8f (patch)
treede2dde2c927d9aa2525c2c6294622ff140ec5acd /sources/pyside6/libpyside
parent434b5b0cc2c44d0224281bbdb234976483500b44 (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/libpyside')
-rw-r--r--sources/pyside6/libpyside/class_property.cpp1
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: