Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Fix crash when creating scene collections with "unsafe" names
Scene collection names that are not considered "safe" by OBS Studio get a changed JSON file name with incompatible characters replaced. The refactored scene collection implementation uses the Load function to either activate an existing scene collection or create a new one if it does not exist. The Load function however overwrote the scene collection name set in the profile with its own variant based off the "safe" file name, which created a mismatch with the code that created the collection data model. As the Load function is only called by ActivateSceneCollection (which itself already sets the name and filename for the collection), removal of this superfluous code in the Load function also fixes the issue.
- Loading branch information