From 9831ccb692d981bc60bd4f3fa4a3b026defe79f9 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Mon, 20 Mar 2017 21:59:13 +0100 Subject: [PATCH] avoid creation of multiples instances of viewers --- src/STD/STD_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2