mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Hold refs to existing sources during remove scene undo
This commit is contained in:
parent
3a67fe5944
commit
a92b671ed1
@ -3903,8 +3903,8 @@ void OBSBasic::RemoveSelectedScene()
|
||||
auto cb = [](obs_scene_t *scene, obs_sceneitem_t *item,
|
||||
void *data) {
|
||||
UNUSED_PARAMETER(scene);
|
||||
std::vector<obs_source_t *> *existing =
|
||||
(std::vector<obs_source_t *> *)data;
|
||||
std::vector<OBSSource> *existing =
|
||||
(std::vector<OBSSource> *)data;
|
||||
OBSSource source =
|
||||
obs_sceneitem_get_source(item);
|
||||
obs_sceneitem_remove(item);
|
||||
|
Loading…
Reference in New Issue
Block a user