From 226e89acadeea921767a20b0622459aea6d29b2e Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 29 Jun 2005 12:34:51 +0000 Subject: [PATCH] fIX FOR bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in Mesh). --- src/SalomeApp/SalomeApp_Selection.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ); } -- 2.39.2