diff --git a/trayicon.cpp b/trayicon.cpp index 2a614ea..d999cb2 100644 --- a/trayicon.cpp +++ b/trayicon.cpp @@ -34,6 +34,8 @@ TrayIcon::TrayIcon(QObject *parent) : } }); + connect(&this->pulse, &QPulse::SetCardProfileOperationCompleted, this, &TrayIcon::refreshData); // ignore argument + // Need to use BlockingQueuedConnection to pull items off pulseaudio thread before it reallocates them connect(&this->pulse, &QPulse::GotCardInfoList, this, &TrayIcon::onGotPulseCardInfo, Qt::BlockingQueuedConnection);