diff --git a/trayicon.cpp b/trayicon.cpp index 5d9eec0..a6d1ebd 100644 --- a/trayicon.cpp +++ b/trayicon.cpp @@ -31,7 +31,9 @@ TrayIcon::TrayIcon(QObject *parent) : refreshData(); } }); - connect(&this->pulse, &QPulse::GotCardInfoList, this, &TrayIcon::onGotPulseCardInfo); + + // Need to use BlockingQueuedConnection to pull items off pulseaudio thread before it reallocates them + connect(&this->pulse, &QPulse::GotCardInfoList, this, &TrayIcon::onGotPulseCardInfo, Qt::BlockingQueuedConnection); refreshData(); }