Salome HOME
debug an abort on progress bar show: experiment on progress bar control
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZIProgressIndicator.cxx
index 58a021eea5c4cd65cf7ab147e7417cf471072dd3..b19674e3e9a77c5958a98644098b05f246885f2c 100755 (executable)
@@ -25,6 +25,8 @@
 #include <QProgressBar>
 #include <QVBoxLayout>
 #include <QApplication>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
 
 IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_ZIProgressIndicator, Message_ProgressIndicator)
 
@@ -66,6 +68,9 @@ Standard_Boolean HYDROGUI_ZIProgressIndicator::Show(const Standard_Boolean theFo
 {
   Standard_Boolean isUserBreak = UserBreak();
   Standard_Real aPosition = GetPosition(); 
+  myCount++;
+  if (theForce)
+      DEBTRACE("aPosition=" << aPosition << " myCount:" <<myCount);
 
   if ( !theForce ) {
     // quadtree
@@ -122,6 +127,7 @@ void HYDROGUI_ZIProgressIndicator::Reset()
   setButtonText( Cancel, tr("CANCEL") );
   setButtonEnabled( true, Cancel );
   myUserBreak = Standard_False;
+  myCount = 0;
 }
 
 void HYDROGUI_ZIProgressIndicator::reject()