From: vsr Date: Wed, 5 Nov 2014 12:09:19 +0000 (+0300) Subject: 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b13c4d7bfd3d31806fde6cdbd5ab4a336f92b18c;p=modules%2Fgui.git 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis --- diff --git a/src/PVViewer/PVViewer_ViewWindow.cxx b/src/PVViewer/PVViewer_ViewWindow.cxx index c7fff08a2..bdb1edfa0 100644 --- a/src/PVViewer/PVViewer_ViewWindow.cxx +++ b/src/PVViewer/PVViewer_ViewWindow.cxx @@ -22,6 +22,7 @@ #include "PVViewer_ViewWindow.h" #include "PVViewer_ViewManager.h" +#include "PVViewer_ViewModel.h" #include "PVViewer_GUIElements.h" #include @@ -46,6 +47,7 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie : SUIT_ViewWindow( theDesktop ), myPVMgr( 0 ) { myModel = theModel; + setViewManager(myModel->getViewManager()); myPVMgr = qobject_cast(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET")); if (myPVMgr) { myPVMgr->setParent( this );