QSystemTrayIcon: properly disconnect old menu in setContextMenu()
requested to merge asturmlechner/qtbase:asturmlechner/QTBUG-78737-QSystemTrayIcon-disconnect-oldmenu into kde/5.15
Amends 121a30cc Fix the unfortunate mistake where oldMenu was not properly disconnected from the contextMenuRequested() signal. This could lead to a situation when several menus are displayed at the same time.
Fixes: QTBUG-78737 Pick-to: 6.6 6.5 6.2 5.15 Change-Id: Ice59841724207192eacd5a52b644f83159e09913 Reviewed-by: Volker Hilsheimer volker.hilsheimer@qt.io (cherry picked from commit b71aa3c6)
Note: 5.15 codereview not even submitted yet upstream, but cherry-pick is straightforward.
See also: https://bugreports.qt.io/browse/QTBUG-78737
Edited by Andreas Sturmlechner