]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
fix Delete button for PV5.9 vuzlov/23995
authorViktor Uzlov <viktor.uzlov@opencascade.com>
Thu, 1 Apr 2021 14:51:05 +0000 (17:51 +0300)
committerViktor Uzlov <viktor.uzlov@opencascade.com>
Thu, 1 Apr 2021 14:51:05 +0000 (17:51 +0300)
src/PVGUI/PVGUI_Module_widgets.cxx

index 948c5f4118343b452a0e0ee8fc3b3d0a31751904..e43935c19e0bfe3419907053741af3245ae2335f 100644 (file)
@@ -68,6 +68,7 @@
 
 #include <vtkPVGeneralSettings.h>
 #include <vtkSMSettings.h>
+#include <vtkPVconfig.h>
 
 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();