Otherwise we would signal an empty StreamRestore only to then signal it has changed
Details
Details
connect(PulseAudioQt::Context::instance(), &PulseAudioQt::Context::streamRestoreAdded, this, [this](PulseAudioQt::StreamRestore *resto) { qDebug() << "Restored" << resto->name(); });
prints Restored "sink-input-by-media-role:event" now instead of Restored ""
Diff Detail
Diff Detail
- Repository
- R994 Pulseaudio Qt Bindings
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
If obj already exists this would result in having it in m_streamRestores twice, wouldn't it?