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
jp9000 2016-07-09 06:31:34 -07:00
parent 5fb9dcbaa7
commit 50d98dceac
1 changed files with 5 additions and 9 deletions

View File

@ -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();
}