diff options
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qthread_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h index 0667a814c3..268891d5e8 100644 --- a/src/corelib/thread/qthread_p.h +++ b/src/corelib/thread/qthread_p.h @@ -114,7 +114,7 @@ public: int priority = ev.priority; if (isEmpty() || last().priority >= priority || - begin() + insertionOffset >= end()) { + insertionOffset >= size()) { // optimization: we can simply append if the last event in // the queue has higher or equal priority append(ev); |