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