]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
avoid creation of multiples instances of viewers
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 20 Mar 2017 20:59:13 +0000 (21:59 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 20 Mar 2017 20:59:13 +0000 (21:59 +0100)
src/STD/STD_Application.cxx

index d252e149199e4b51c1f7d1fcbe4bab3f99aed980..d5751cf34375739c676065e273484fb79e720913 100755 (executable)
@@ -726,7 +726,7 @@ SUIT_ViewManager* STD_Application::viewManager( const QString& vmType ) const
   SUIT_ViewManager* vm = 0;
   for ( QList<SUIT_ViewManager*>::const_iterator it = myViewMgrs.begin(); it != myViewMgrs.end() && !vm; ++it )
   {
-    if ( (*it)->getType() == vmType )
+    if ( (*it)->getType() == vmType && !(*it)->getDetached())
       vm = *it;
   }
   return vm;