fix crash when loading card properties

This commit is contained in:
mappu 2018-10-02 19:27:36 +13:00
parent 2d6e6c8006
commit ce5b1e52d3
1 changed files with 3 additions and 1 deletions

View File

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