From: mzn Date: Fri, 16 Nov 2018 11:46:47 +0000 (+0300) Subject: refs #1835: abort on switch between modules. X-Git-Tag: HYDRO_V2_0_0~3^2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75b7d30f899bcad3e6c0e71ae904484f85419c99;p=modules%2Fhydro.git refs #1835: abort on switch between modules. --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 30c90a0c..cca1a2ae 100755 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -285,6 +285,8 @@ bool HYDROGUI_Module::deactivateModule( SUIT_Study* theStudy ) { disconnect( aViewManager, SIGNAL( mouseMove( SUIT_ViewWindow*, QMouseEvent* ) ), this, SLOT( onMouseMove( SUIT_ViewWindow*, QMouseEvent* ) ) ); + disconnect( aViewManager, SIGNAL( activated( SUIT_ViewManager* ) ), + this, SLOT( onViewActivated( SUIT_ViewManager* ) ) ); OCCViewer_ViewManager* occ_mgr = dynamic_cast( aViewManager ); if( occ_mgr )