From 8429a9706c233c4e76e04573d5f2cc238076b53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Tue, 10 Oct 2017 10:42:23 +0200 Subject: [PATCH] fixed a bug where where the active scene was overwritten by the last one --- src/board/UBBoardController.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 3e5258f6..493a1a08 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1534,12 +1534,13 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy, { freezeW3CWidgets(true); - persistCurrentScene(); - ClearUndoStack(); mActiveScene = targetScene; mActiveSceneIndex = index; + + persistCurrentScene(); + setDocument(pDocumentProxy, forceReload); updateSystemScaleFactor();