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

index ff308b7d78cb620f6f5186a717cef3b1fe4d3fc2..5f6ebc3ba88cac78593f7415699af52fd4fde6e3 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;