From 5f6f2d04ad0cc0fd5f4ee2ee1adb07d8e90fa9ba Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 2 Mar 2025 17:52:08 +0100 Subject: [PATCH] Update PythonWrapper.cpp . --- src/Gui/PythonWrapper.cpp | 10 +++------- src/Mod/Fem/Gui/TaskFemConstraint.cpp | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Gui/PythonWrapper.cpp b/src/Gui/PythonWrapper.cpp index b07308ca2e..58c6fc88a2 100644 --- a/src/Gui/PythonWrapper.cpp +++ b/src/Gui/PythonWrapper.cpp @@ -80,14 +80,10 @@ // Do not use SHIBOKEN_MICRO_VERSION; it might contain a dot # define SHIBOKEN_FULL_VERSION QT_VERSION_CHECK(SHIBOKEN_MAJOR_VERSION, SHIBOKEN_MINOR_VERSION, 0) -# define HAVE_SHIBOKEN_TYPE_FOR_TYPENAME - -# ifndef HAVE_SHIBOKEN_TYPE_FOR_TYPENAME -# include -# include -# include -# endif +# include +# include +# include # endif // HAVE_PYSIDE2 #endif // HAVE_SHIBOKEN2 diff --git a/src/Mod/Fem/Gui/TaskFemConstraint.cpp b/src/Mod/Fem/Gui/TaskFemConstraint.cpp index 10acfae65d..a0d37f8af2 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraint.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraint.cpp @@ -176,6 +176,7 @@ void TaskFemConstraint::createDeleteAction(QListWidget* parentList) // display shortcut behind the context menu entry deleteAction->setShortcutVisibleInContextMenu(true); + parentList->addAction(deleteAction); parentList->setContextMenuPolicy(Qt::ActionsContextMenu); }