diff --git a/src/mumble/widgets/TrayIcon.cpp b/src/mumble/widgets/TrayIcon.cpp index fe49ce9f9c..1903fc15c0 100644 --- a/src/mumble/widgets/TrayIcon.cpp +++ b/src/mumble/widgets/TrayIcon.cpp @@ -59,8 +59,12 @@ TrayIcon::TrayIcon() : QSystemTrayIcon(Global::get().mw), m_statusIcon(Global::g show(); } +#include + void TrayIcon::on_icon_update() { - std::reference_wrapper< QIcon > newIcon = Global::get().mw->qiIcon; + QIcon &newIcon = Global::get().mw->qiIcon; + + qDebug() << "Sanity Check: Global icon addr " << &Global::get().mw->qiIcon << " Local reference addr " << &newIcon; const ClientUser *p = ClientUser::get(Global::get().uiSession); @@ -94,7 +98,9 @@ void TrayIcon::on_icon_update() { } } - if (&newIcon.get() != &m_statusIcon.get()) { + qDebug() << "newIcon addr " << &newIcon << " m_statusIcon addr " << &m_statusIcon.get(); + + if (&newIcon != &m_statusIcon.get()) { m_statusIcon = newIcon; applyIcon(m_statusIcon); }