From 6234d43868e5cf410a94d33db99a6c2dcc6df822 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 2 Dec 2014 20:24:38 +0300 Subject: [PATCH] 0022811: EDF 9266 PARAVIS: PVViewer is broken after connecting a study while Paravis is loading --- 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 51354196a..47b4eaa2e 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -409,6 +409,8 @@ bool STD_Application::closeDoc( bool ask ) bool STD_Application::closeActiveDoc( bool permanently ) { SUIT_Study* study = activeStudy(); + if ( !study ) // no active study + return true; beforeCloseDoc( study ); -- 2.39.2