From 5236f1f870075b56f0d9532c401966020857a114 Mon Sep 17 00:00:00 2001 From: Viktor Uzlov Date: Thu, 1 Apr 2021 17:51:05 +0300 Subject: [PATCH] fix Delete button for PV5.9 --- src/PVGUI/PVGUI_Module_widgets.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 948c5f41..e43935c1 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -68,6 +68,7 @@ #include #include +#include class ResizeHelper : public pqPVAnimationWidget { @@ -135,7 +136,11 @@ void PVGUI_Module::setupDockWidgets() // hook delete to pqDeleteReaction. QAction* tempDeleteAction = new QAction(this); pqDeleteReaction* handler = new pqDeleteReaction(tempDeleteAction); +#if PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR<9 handler->connect(propertiesPanel, SIGNAL(deleteRequested(pqPipelineSource*)), SLOT(deleteSource(pqPipelineSource*))); +#else + handler->connect(propertiesPanel, SIGNAL(deleteRequested(pqProxy*)), SLOT(deleteSource(pqProxy*))); +#endif myDockWidgets[propertiesDock] = true; propertiesDock->hide(); -- 2.39.2