From: Anthony Geay Date: Fri, 7 Apr 2023 09:14:58 +0000 (+0200) Subject: Avoid transfert of PV3DViewer to MultiTabWidget sub widget X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0422e870d55ae4ae62c9c863e8230429375ef6a8;p=modules%2Fgui.git Avoid transfert of PV3DViewer to MultiTabWidget sub widget --- diff --git a/src/PVViewer/PVViewer_Core.cxx b/src/PVViewer/PVViewer_Core.cxx index 86eef145f..6ac97835e 100644 --- a/src/PVViewer/PVViewer_Core.cxx +++ b/src/PVViewer/PVViewer_Core.cxx @@ -131,7 +131,7 @@ bool PVViewer_Core::ParaviewInitApp() // Direct VTK log messages to our SALOME window - TODO: review this PVViewer_OutputWindow * w = PVViewer_OutputWindow::New(); vtkOutputWindow::SetInstance(w); - + pqActiveObjects::instance().setActiveView(nullptr); new pqTabbedMultiViewWidget(); // registers a "MULTIVIEW_WIDGET" on creation // Initialization of ParaView GUI widgets will be done when these widgets are // really needed. diff --git a/src/PVViewer/PVViewer_ViewWindow.cxx b/src/PVViewer/PVViewer_ViewWindow.cxx index 6e2516921..6309f86d3 100644 --- a/src/PVViewer/PVViewer_ViewWindow.cxx +++ b/src/PVViewer/PVViewer_ViewWindow.cxx @@ -32,6 +32,7 @@ #include #include +#include "pqActiveObjects.h" //--------------------------------------------------------- #define USE_DEBUG @@ -58,6 +59,7 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie myDesktop = theDesktop; myModel = theModel; setViewManager(myModel->getViewManager()); + pqActiveObjects::instance().setActiveView(nullptr); myPVMgr = qobject_cast(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET")); if (myPVMgr) { SUIT_Application* app = SUIT_Session::session()->activeApplication();