fix crash when loading card properties
This commit is contained in:
parent
2d6e6c8006
commit
ce5b1e52d3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user