#include <QProgressBar>
#include <QVBoxLayout>
#include <QApplication>
-#define _DEVDEBUG_
+//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_SIProgressIndicator, Message_ProgressIndicator)
Standard_Boolean HYDROGUI_SIProgressIndicator::Show(const Standard_Boolean theForce)
{
+ //DEBTRACE("...");
Standard_Real aPosition = GetPosition();
myCount++;
if (theForce)
Standard_Boolean isUserBreak = UserBreak();
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();
}