From fc2d5ab02a48e56fa1c6b4a13c3e5c903875820c Mon Sep 17 00:00:00 2001 From: Hartmnt Date: Thu, 2 Jan 2025 16:44:39 +0000 Subject: [PATCH] FIX --- src/mumble/widgets/TrayIcon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mumble/widgets/TrayIcon.cpp b/src/mumble/widgets/TrayIcon.cpp index fe49ce9f9c..3ebbfab9e1 100644 --- a/src/mumble/widgets/TrayIcon.cpp +++ b/src/mumble/widgets/TrayIcon.cpp @@ -60,7 +60,7 @@ TrayIcon::TrayIcon() : QSystemTrayIcon(Global::get().mw), m_statusIcon(Global::g } void TrayIcon::on_icon_update() { - std::reference_wrapper< QIcon > newIcon = Global::get().mw->qiIcon; + QIcon &newIcon = Global::get().mw->qiIcon; const ClientUser *p = ClientUser::get(Global::get().uiSession); @@ -94,7 +94,7 @@ void TrayIcon::on_icon_update() { } } - if (&newIcon.get() != &m_statusIcon.get()) { + if (&newIcon != &m_statusIcon.get()) { m_statusIcon = newIcon; applyIcon(m_statusIcon); }