Gui: Fix regression in SelectionObserverPython::removeObserver.

This commit is contained in:
tritao
2025-02-25 09:18:54 +00:00
committed by Chris Hennes
parent b07caa732e
commit 742627868e
2 changed files with 1 additions and 5 deletions

View File

@@ -34,8 +34,6 @@ std::vector<SelectionObserverPython*> SelectionObserverPython::_instances;
void SelectionObserverPythonHandler::init(PyObject* obj)
{
this->inst = obj;
#undef FC_PY_ELEMENT
#define FC_PY_ELEMENT(_name) FC_PY_GetCallable(obj,#_name,py_##_name);
FC_PY_SEL_OBSERVER
@@ -209,7 +207,7 @@ void SelectionObserverPythonHandler::removePreselection(const SelectionChanges&
SelectionObserverPython::SelectionObserverPython(const Py::Object& obj, ResolveMode resolve)
: SelectionObserver(true, resolve)
: SelectionObserver(true, resolve), inst(obj)
{
this->init(obj.ptr());
}

View File

@@ -52,8 +52,6 @@ protected:
private:
PyObject* inst{nullptr};
#define FC_PY_SEL_OBSERVER \
FC_PY_ELEMENT(onSelectionChanged) \
FC_PY_ELEMENT(addSelection) \