Skip to content

QSystemTrayIcon: properly disconnect old menu in setContextMenu()

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 (cherry picked from commit b71aa3c6)

Note: 5.15 codereview not even submitted yet upstream, but cherry-pick is straightforward. See also:

Edited by Andreas Sturmlechner

Merge request reports