UI: Don't do scene check when removing scene items
The scene check prevents the ability to remove scene items that have been detached from their scene, which can happen when scenes are used as scene items and the scene is deleted elsewhere.master
parent
5fb9dcbaa7
commit
50d98dceac
|
@ -1653,9 +1653,6 @@ void OBSBasic::AddSceneItem(OBSSceneItem item)
|
|||
|
||||
void OBSBasic::RemoveSceneItem(OBSSceneItem item)
|
||||
{
|
||||
obs_scene_t *scene = obs_sceneitem_get_scene(item);
|
||||
|
||||
if (GetCurrentScene() == scene) {
|
||||
for (int i = 0; i < ui->sources->count(); i++) {
|
||||
QListWidgetItem *listItem = ui->sources->item(i);
|
||||
|
||||
|
@ -1664,7 +1661,6 @@ void OBSBasic::RemoveSceneItem(OBSSceneItem item)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SaveProject();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue