Salome HOME
fix abort on exex python script with progress indicator. Qt display was sometimes...
[modules/hydro.git] / src / HYDROData / HYDROData_CalculationCase.cxx
index 9e79b797b9d2a6f6cd75b4fbc61124752b9cc201..adaeee141b5d69a2c171e97374bc7eed276c2954 100755 (executable)
@@ -1080,7 +1080,7 @@ NCollection_Sequence<double> HYDROData_CalculationCase::GetAltitudesForPoints(
   NCollection_Sequence<double> aResSeq;
 
   Handle(Message_ProgressIndicator) aZIProgress = HYDROData_Tool::GetZIProgress();
-  //DEBTRACE("aZIProgress=" << aZIProgress);
+  DEBTRACE("aZIProgress before running");
   if ( aZIProgress ) {
     aZIProgress->Reset();
   }
@@ -1104,7 +1104,7 @@ NCollection_Sequence<double> HYDROData_CalculationCase::GetAltitudesForPoints(
       QThread::msleep(200);
     }
   }
-  //DEBTRACE("aZIProgress=" << aZIProgress);
+  DEBTRACE("ZI running finished");
   if ( aZIProgress )
     aZIProgress->Show( Standard_True );
 
@@ -1155,6 +1155,7 @@ std::vector<double> HYDROData_CalculationCase::GetStricklerCoefficientForPoints(
     return theCoeffs;
 
   Handle(Message_ProgressIndicator) aSIProgress = HYDROData_Tool::GetSIProgress();
+  DEBTRACE("aSIProgress before running");
   if ( aSIProgress ) {
     aSIProgress->Reset();
   }
@@ -1169,6 +1170,9 @@ std::vector<double> HYDROData_CalculationCase::GetStricklerCoefficientForPoints(
       QThread::msleep(200);
     }
   }
+  DEBTRACE("SI running finished");
+  if ( aSIProgress )
+    aSIProgress->Show( Standard_True );
 
   return theCoeffs;
 }