summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qtablewidget-using/main.cpp
diff options
context:
space:
mode:
authorVladimir Belyavsky <belyavskyv@gmail.com>2023-11-10 18:54:40 +0300
committerVladimir Belyavsky <belyavskyv@gmail.com>2023-11-12 13:36:05 +0000
commit5b451efe817a0bef8ed1463fdc5ca483f34a53fd (patch)
treed55067f7e5f5b671ff73ccffc4167e561971f706 /src/widgets/doc/snippets/qtablewidget-using/main.cpp
parent37048d04172430ee88c9cd8f7589c51a5bbcd5f4 (diff)
QCocoaSystemTrayIcon: fix updateMenu() logic
Amends da754d5b6589c9877f0325edb3da5cbc64d966c7 We should avoid registering an observer multiple times for the same NSMenu object, because it results in multiple consecutive emitActivated() calls. So, - bail out early if menu is the same, i.e. we have nothing to do - unregister an observer we added previously for the old menu Fixes: QTBUG-119053 Pick-to: 6.6 6.5 Change-Id: I14fce693dba351b1d12f2140fa8e672227cc7a9e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-using/main.cpp')
0 files changed, 0 insertions, 0 deletions