From: Paul RASCLE Date: Mon, 20 Mar 2017 20:59:13 +0000 (+0100) Subject: avoid creation of multiples instances of viewers X-Git-Tag: SHAPER_2.7.0_WIN~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f808333223dedcac62a06a64d2e7c1c754a0c5f;p=modules%2Fgui.git avoid creation of multiples instances of viewers --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index d252e1491..d5751cf34 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -726,7 +726,7 @@ SUIT_ViewManager* STD_Application::viewManager( const QString& vmType ) const SUIT_ViewManager* vm = 0; for ( QList::const_iterator it = myViewMgrs.begin(); it != myViewMgrs.end() && !vm; ++it ) { - if ( (*it)->getType() == vmType ) + if ( (*it)->getType() == vmType && !(*it)->getDetached()) vm = *it; } return vm;