Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.5.3, 6.6.0
-
None
-
-
5b451efe8 (dev), 038a20998 (6.6), ddc9dbd26 (tqtc/lts-6.5)
Description
Good afternoon.
If you call set menu (via the QSystemTrayIcon::setContextMenu method) in a slot that is connected to the QSystemTrayIcon::activated signal, then with subsequent clicks on the tray menu icon, this slot will be called several times, and with each click the number of calls doubles.
This behavior may cause the application to freeze when clicking multiple times.
I am attaching a video demonstrating this behavior and the source code of a minimal project for reproduction.
Attachments
For Gerrit Dashboard: QTBUG-119053 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
517509,5 | QCocoaSystemTrayIcon: fix updateMenu() logic | dev | qt/qtbase | Status: MERGED | +2 | 0 |
517701,2 | QCocoaSystemTrayIcon: fix updateMenu() logic | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
517764,2 | QCocoaSystemTrayIcon: fix updateMenu() logic | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |