mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Don't load existing sources for scene removal undo
This commit is contained in:
parent
509e44d6ea
commit
a7e0affd36
|
@ -3835,9 +3835,12 @@ void OBSBasic::RemoveSelectedScene()
|
|||
const char *name = obs_data_get_string(data, "name");
|
||||
|
||||
obs_source_t *source = obs_get_source_by_name(name);
|
||||
if (!source)
|
||||
if (!source) {
|
||||
source = obs_load_source(data);
|
||||
sources.push_back(source);
|
||||
sources.push_back(source);
|
||||
} else {
|
||||
obs_source_release(source);
|
||||
}
|
||||
|
||||
obs_data_release(data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue