From: stv Date: Mon, 21 Nov 2005 12:37:42 +0000 (+0000) Subject: Close newly started application if useFile() fails. X-Git-Tag: BR_3_1_0_deb~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ed0a7d6a5bda1a9a5cfccd6c39c8cb19ea2e310;p=modules%2Fgui.git Close newly started application if useFile() fails. --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 20b8f0837..c53af663d 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -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();