fixed a bug where where the active scene was overwritten by the last one

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 0bbc5ec812
commit 8429a9706c
  1. 5
      src/board/UBBoardController.cpp

@ -1534,12 +1534,13 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
{ {
freezeW3CWidgets(true); freezeW3CWidgets(true);
persistCurrentScene();
ClearUndoStack(); ClearUndoStack();
mActiveScene = targetScene; mActiveScene = targetScene;
mActiveSceneIndex = index; mActiveSceneIndex = index;
persistCurrentScene();
setDocument(pDocumentProxy, forceReload); setDocument(pDocumentProxy, forceReload);
updateSystemScaleFactor(); updateSystemScaleFactor();

Loading…
Cancel
Save