From d9d10f97e7cf04e4d5b4ef0b3ae9a215c36c9006 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 24 Dec 2015 15:28:33 +0300 Subject: [PATCH] Issue #1111 Sketch invisible It is not enough to create selector on initialize(). The problem still exists in the second study because it is not called there. So, it is decided to perform this in connectToStudy() of module. An alternative is to do this in NewGEOM_DataModel before Mgr->load(). The problem is in this place because it causes redisplay signals flush. The viewer should be initialized before this case. --- src/NewGeom/NewGeom_Module.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NewGeom/NewGeom_Module.h b/src/NewGeom/NewGeom_Module.h index 3a2875dde..4920b1bee 100644 --- a/src/NewGeom/NewGeom_Module.h +++ b/src/NewGeom/NewGeom_Module.h @@ -18,6 +18,7 @@ class XGUI_Workshop; class NewGeom_OCCSelector; class OCCViewer_Viewer; +class CAM_Study; /** * \ingroup Salome @@ -141,6 +142,11 @@ Q_OBJECT void inspectSalomeModules(); public slots: + /// \brief The method is redefined to connect to the study viewer before the data + /// model is filled by opened file. This file open will flush redisplay signals for, + /// objects which should be visualized + virtual void connectToStudy(CAM_Study* theStudy); + /// \brief The method is called on the module activation /// \param theStudy current study virtual bool activateModule(SUIT_Study* theStudy); -- 2.39.2