diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2019-07-12 12:22:30 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2019-07-18 15:26:49 +0200 |
commit | de775f2e62157a6d572b4c363bee48b84d3be630 (patch) | |
tree | 6b54043f966e9a310f29d2746f21738cc08309d3 /src/corelib | |
parent | 907923b7cafad8cff6f0f5c8764e9181ac1531bd (diff) |
macOS: activate correct object when using multiple QSystemTrayIcons
Since we need to set the delegate on the defaultUserNotificationCenter,
which is a gobal object, we have to update the delegate when we show
the message. Otherwise, the last delegate created and set will receive
the notification, and the last QSystemTrayIcon created will emit the
activated signal.
Before clearing the delegate upon destruction, make sure that it's
the right item first.
Also updating coding style in the respective parts of the code, and
plugging a memory leak.
Change-Id: Ife62ae0776a5a610a6fd735b2959b807c3a410c7
Fixes: QTBUG-77003
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions