Emit _q_notify only if there's no notification pending
When using the waitXXX functions in a loop, many _q_notify signals are
emitted. They are connection via Qt::QueuedConnection, but the event
loop never gets the chance to process them.
Introduce a counter to count the attempts to send a notification, but
only send it once.
Fixes: QTBUG-74961
Change-Id: I0ee4522db63844bdd37169d3a31bde2d6f92f383
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
| commit | 85ee2c658a45d2958a54045951d236769640337f |
| parent | 029d399148c1a0b6d7c4e9a36a5be348558ceee9 |
| author | Joerg Bornemann <joerg.bornemann@qt.io> |
| committer | Joerg Bornemann <joerg.bornemann@qt.io> |
| commit time | Mon, 1 Jul 2019 09:51:01 +0200 |