From: mzn Date: Wed, 29 Jun 2005 12:34:51 +0000 (+0000) Subject: fIX FOR bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in... X-Git-Tag: V3_0_1~102 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=226e89acadeea921767a20b0622459aea6d29b2e;p=modules%2Fgui.git fIX FOR bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in Mesh). --- diff --git a/src/SalomeApp/SalomeApp_Selection.cxx b/src/SalomeApp/SalomeApp_Selection.cxx index 39ecc9b1c..d3e26a304 100644 --- a/src/SalomeApp/SalomeApp_Selection.cxx +++ b/src/SalomeApp/SalomeApp_Selection.cxx @@ -58,6 +58,14 @@ QtxValue SalomeApp_Selection::globalParam( const QString& p ) const { if( p=="client" ) return myPopupClient; + else if ( p=="activeView" ) + { + QString aViewType = ""; + SUIT_ViewWindow* anActiveView = study()->application()->desktop()->activeWindow(); + if (anActiveView) + aViewType = anActiveView->getViewManager()->getType(); + return QtxValue(aViewType); + } else return QtxPopupMgr::Selection::globalParam( p ); }