From 1e71bfa15154c3fafa3512481ec5bea7e101de7d Mon Sep 17 00:00:00 2001 From: Palakis Date: Thu, 2 Mar 2017 15:36:48 +0100 Subject: [PATCH] Fixed a crash when switching to another scene after switching to another scene collection --- WSEvents.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/WSEvents.cpp b/WSEvents.cpp index 6c87f5c4..b33f748d 100644 --- a/WSEvents.cpp +++ b/WSEvents.cpp @@ -264,6 +264,15 @@ void WSEvents::OnSceneListChange() void WSEvents::OnSceneCollectionChange() { broadcastUpdate("SceneCollectionChanged"); + + scene_handler = nullptr; + transition_handler = nullptr; + + OnTransitionListChange(); + OnTransitionChange(); + + OnSceneListChange(); + OnSceneChange(); } void WSEvents::OnSceneCollectionListChange()