From: Christophe Bourcier Date: Thu, 11 May 2023 07:06:43 +0000 (+0200) Subject: Make the PVViewer active again at ParaVIS activation to avoid a new RenderView being... X-Git-Tag: V9_11_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fgui.git;a=commitdiff_plain;h=342901087e2bc8524dd9e6220c7f50c63e379c25 Make the PVViewer active again at ParaVIS activation to avoid a new RenderView being created when a dataset is displayed. No regression observed in PV3DViewer with this change. --- diff --git a/src/PVViewer/PVViewer_ViewWindow.cxx b/src/PVViewer/PVViewer_ViewWindow.cxx index cd8ed9ebc..a724de9b8 100644 --- a/src/PVViewer/PVViewer_ViewWindow.cxx +++ b/src/PVViewer/PVViewer_ViewWindow.cxx @@ -50,7 +50,11 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie myDesktop = theDesktop; myModel = theModel; setViewManager(myModel->getViewManager()); - pqActiveObjects::instance().setActiveView(nullptr); + // This may improve synchronization between PV3DViewer and PVViewer + // but this make the PVViewer not active when ParaVIS is launched, + // which results in a new RenderView being created when a dataset is displayed. + // So we comment it for now. + //pqActiveObjects::instance().setActiveView(nullptr); myPVMgr = qobject_cast(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET")); if (myPVMgr) { SUIT_Application* app = SUIT_Session::session()->activeApplication();