mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix OBS signal recursion
SourceSyncChanged() would call syncOffsetChanged() because it's connected to the widget. This is fixed by blocking signals This bug was discovered because undo/redo actions for sync offset changes were triggering the creation of new undo/redo actions within their own callbacks. Fixes obsproject/obs-studio#4760
This commit is contained in:
parent
6792e9c1c6
commit
dfff6bcfd6
@ -377,7 +377,9 @@ void OBSAdvAudioCtrl::SourceVolumeChanged(float value)
|
||||
|
||||
void OBSAdvAudioCtrl::SourceSyncChanged(int64_t offset)
|
||||
{
|
||||
syncOffset->blockSignals(true);
|
||||
syncOffset->setValue(offset / NSEC_PER_MSEC);
|
||||
syncOffset->blockSignals(false);
|
||||
}
|
||||
|
||||
void OBSAdvAudioCtrl::SourceMixersChanged(uint32_t mixers)
|
||||
|
Loading…
Reference in New Issue
Block a user