]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Close newly started application if useFile() fails.
authorstv <stv@opencascade.com>
Mon, 21 Nov 2005 12:37:42 +0000 (12:37 +0000)
committerstv <stv@opencascade.com>
Mon, 21 Nov 2005 12:37:42 +0000 (12:37 +0000)
src/STD/STD_Application.cxx

index 20b8f0837d9942d58cd2725e3a3c1b20bd782789..c53af663d496565c0ca328a6dc1fe21ff21eb112 100755 (executable)
@@ -272,6 +272,8 @@ bool STD_Application::onOpenDoc( const QString& aName )
       aApp = startApplication( 0, 0 );
       if ( aApp )
         res = aApp->useFile( aName );
+      if ( !res )
+        aApp->closeApplication();
     }
     else
       aApp->desktop()->setActiveWindow();