From 6ed0a7d6a5bda1a9a5cfccd6c39c8cb19ea2e310 Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 21 Nov 2005 12:37:42 +0000 Subject: [PATCH] Close newly started application if useFile() fails. --- src/STD/STD_Application.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.2