mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-02 13:27:14 -05:00
Revert "UI: Cleanup on_scenes_currentItemChanged function"
This reverts commitc497342fd6. Fixes a bug where the sources list would not update after5b25dec714.
This commit is contained in:
@@ -4656,11 +4656,22 @@ void OBSBasic::AdvAudioPropsDestroyed()
|
||||
void OBSBasic::on_scenes_currentItemChanged(QListWidgetItem *current,
|
||||
QListWidgetItem *prev)
|
||||
{
|
||||
obs_source_t *source = NULL;
|
||||
|
||||
if (current) {
|
||||
OBSScene scene = GetOBSRef<OBSScene>(current);
|
||||
SetCurrentScene(scene);
|
||||
obs_scene_t *scene;
|
||||
|
||||
scene = GetOBSRef<OBSScene>(current);
|
||||
source = obs_scene_get_source(scene);
|
||||
}
|
||||
|
||||
SetCurrentScene(source);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED);
|
||||
|
||||
UpdateContextBar();
|
||||
|
||||
UNUSED_PARAMETER(prev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user