#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_ZIProgressIndicator, Message_ProgressIndicator)
Standard_Boolean HYDROGUI_ZIProgressIndicator::Show(const Standard_Boolean theForce)
{
+ //DEBTRACE("...");
Standard_Boolean isUserBreak = UserBreak();
Standard_Real aPosition = GetPosition();
myCount++;
}
bool isFinished = aPosition >= 1 || ( isUserBreak && GetNbScopes() < 2 );
- if ( isFinished ) {
+ if ( isFinished && theForce ) { // theForce == true : call from main thread, Qt display safe
if ( result() != Accepted ) {
QDialog::accept();
}
- } else if ( !isVisible() ) {
+ } else if ( !isVisible() && theForce ) { // theForce == true : call from main thread, Qt display safe
open();
}