From 1f808333223dedcac62a06a64d2e7c1c754a0c5f 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 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; -- 2.39.2