add comment about regression in ProgressBar

This commit is contained in:
wmayer
2018-08-14 23:47:43 +02:00
parent 133fed19d2
commit 319657fd72

View File

@@ -208,9 +208,13 @@ void Sequencer::setValue(int step)
}
}
else {
// FIXME: This check causes the progress bar
// to never appear when loading a STEP file
#if 1
int elapsed = d->progressTime.elapsed();
if (elapsed > 100) {
d->progressTime.restart();
#endif
if (thr != currentThread) {
QMetaObject::invokeMethod(d->bar, "setValue", Qt::/*Blocking*/QueuedConnection,
QGenericReturnArgument(), Q_ARG(int,step));
@@ -224,7 +228,9 @@ void Sequencer::setValue(int step)
d->bar->resetObserveEventFilter();
qApp->processEvents();
}
#if 1
}
#endif
}
}