I'm experiencing a segfault when deleting a scene. I believe I've tracked down the issue, but I'm not sure how to fix it.
Steps to reproduce:
- Create new workspace/load from disk
- Create scene in Functions
- Create show in Shows
- Add created scene to the show
- Delete created scene in Functions
From debugging, I've found that the scene in question has m_visible set to false (and is appropriately hidden once the workspace is saved and reloaded) but is still shown in the function manager. Once it's deleted, the associated sequence is bound to a non-existent scene. It should not be the case that this scene can be deleted manually, since it's already deleted once the last associated sequence is; I suspect there is a missing call to update the functions list after adding the scene to the show.
I'm running QLC+ on Linux, but from the nature of the bug I don't believe that the problem is platform-specific. I also cannot share an example workspace due to the fact that this bug only occurs for scenes not loaded from disk.