Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartmnt committed Jan 2, 2025
1 parent f642af1 commit 991bd69
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mumble/widgets/TrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ TrayIcon::TrayIcon() : QSystemTrayIcon(Global::get().mw), m_statusIcon(Global::g
show();
}

#include <QDebug>

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);

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 991bd69

Please sign in to comment.