summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWladimir Leuschner <wladimir.leuschner@qt.io>2023-10-17 14:25:25 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-11-14 18:37:04 +0000
commit72331b450da77f9af30af497d9c194da656c7296 (patch)
treee0f0724e18820c437583e04edf64efb95d01d065
parent37750aa8d158d44689e768ae3926dc842730dfcd (diff)
Fix setting SysTrayIcon visible after explicitly hiding it
After hiding the QSystemTrayIcon explicitly with .setVisible(false) resetting visibility with .setVisible(true) does not generate NIM_MODIFY message and thus preventing the tray icon from being visible again. Fixes: QTBUG-118133 Pick-to: 6.5 Change-Id: Ic2b1d0f293c92fec7ec697b2fe3d1da9fd0d0e44 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Timothée Keller <timothee.keller@qt.io> (cherry picked from commit 77e0e7c414b7547a36734cfea3e5b237329c93ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/platforms/windows/qwindowssystemtrayicon.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowssystemtrayicon.cpp b/src/plugins/platforms/windows/qwindowssystemtrayicon.cpp
index 3bad237f9e..39069a651f 100644
--- a/src/plugins/platforms/windows/qwindowssystemtrayicon.cpp
+++ b/src/plugins/platforms/windows/qwindowssystemtrayicon.cpp
@@ -162,8 +162,6 @@ void QWindowsSystemTrayIcon::cleanup()
void QWindowsSystemTrayIcon::updateIcon(const QIcon &icon)
{
qCDebug(lcQpaTrayIcon) << __FUNCTION__ << '(' << icon << ')' << this;
- if (icon.cacheKey() == m_icon.cacheKey())
- return;
m_icon = icon;
const HICON hIconToDestroy = createIcon(icon);
if (ensureInstalled())