From 5f9e33ca05b9ebc8f0e185cc8061733af71968c6 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Tue, 6 Nov 2018 15:08:47 +0100 Subject: [PATCH] debug, dialogs not availables when HYDRO module interface is not loaded --- src/HYDROData/HYDROData_CalculationCase.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index daeef25f..ef39c64b 100755 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -1048,6 +1048,7 @@ NCollection_Sequence HYDROData_CalculationCase::GetAltitudesForPoints( NCollection_Sequence aResSeq; Handle(Message_ProgressIndicator) aZIProgress = HYDROData_Tool::GetZIProgress(); + //DEBTRACE("aZIProgress=" << aZIProgress); if ( aZIProgress ) { aZIProgress->Reset(); } @@ -1071,7 +1072,9 @@ NCollection_Sequence HYDROData_CalculationCase::GetAltitudesForPoints( QThread::usleep(500); } } - aZIProgress->Show( Standard_True ); + //DEBTRACE("aZIProgress=" << aZIProgress); + if ( aZIProgress ) + aZIProgress->Show( Standard_True ); return aResSeq; } -- 2.39.2