From: Paul RASCLE Date: Mon, 20 Mar 2017 20:59:13 +0000 (+0100) Subject: avoid creation of multiples instances of viewers X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9831ccb692d981bc60bd4f3fa4a3b026defe79f9;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 ff308b7d7..5f6ebc3ba 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;