Application displays error message "Selection spans locked content..." and closes without saving the latest edits

Studio 2021 keeps closing (without saving the latest changes) when I unlock certain segments to edit them, and displays the above error message. I don't think there's any error at all since I unlocked the segment but even if there is, it's no excuse for shutting down the whole application every time. It shouldn't even be possible to select locked segments.

Parents Reply Children
No Data