diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2011-02-20 14:44:20 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-03-28 11:09:45 (GMT) |
commit | 818ef0c6c0202b5dffd0e8ab045f48687546d5dd (patch) | |
tree | e26b825cdb5e2d7730e73c604e26f83c75ff81e1 | |
parent | 764e060a389a18a5804d23c528abdaebcee3ca13 (diff) | |
download | Qt-818ef0c6c0202b5dffd0e8ab045f48687546d5dd.zip Qt-818ef0c6c0202b5dffd0e8ab045f48687546d5dd.tar.gz Qt-818ef0c6c0202b5dffd0e8ab045f48687546d5dd.tar.bz2 |
Report that an update is needed if no update was done
-rw-r--r-- | src/corelib/concurrent/qfutureinterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/concurrent/qfutureinterface.cpp b/src/corelib/concurrent/qfutureinterface.cpp index 627d0c7..c5bd802 100644 --- a/src/corelib/concurrent/qfutureinterface.cpp +++ b/src/corelib/concurrent/qfutureinterface.cpp @@ -219,7 +219,7 @@ QString QFutureInterfaceBase::progressText() const bool QFutureInterfaceBase::isProgressUpdateNeeded() const { QMutexLocker locker(&d->m_mutex); - return (d->progressTime.elapsed() > (1000 / MaxProgressEmitsPerSecond)); + return !d->progressTime.isValid() || (d->progressTime.elapsed() > (1000 / MaxProgressEmitsPerSecond)); } void QFutureInterfaceBase::reportStarted() |