UI: Fix multithread-unsafe GetCurrentScene
The function `OBSBasic::GetCurrentScene()` is also called from the graphics thread and access to a QListWidget object, which is not multithread-safe.
This commit is contained in:
parent
e8b2b2092b
commit
1c4bc6e735
3 changed files with 10 additions and 2 deletions
|
|
@ -735,6 +735,7 @@ void OBSBasic::SetCurrentScene(OBSSource scene, bool force)
|
|||
|
||||
if (source == scene) {
|
||||
ui->scenes->blockSignals(true);
|
||||
currentScene = itemScene.Get();
|
||||
ui->scenes->setCurrentItem(item);
|
||||
ui->scenes->blockSignals(false);
|
||||
if (api)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue