diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-06-17 15:14:08 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-07-01 09:51:01 +0200 |
commit | 85ee2c658a45d2958a54045951d236769640337f (patch) | |
tree | 48d464dbcd7a10b31afca510a71e2c89d5d18404 /sync.profile | |
parent | 029d399148c1a0b6d7c4e9a36a5be348558ceee9 (diff) | |
download | qtserialport-85ee2c658a45d2958a54045951d236769640337f.tar.gz |
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>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions