persist document before possible crash on ClearUndoStack (when using eraser then clearBoard button

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 2a92fc1ba1
commit 68c7da58fe
  1. 2
      src/board/UBBoardController.cpp

@ -1885,9 +1885,9 @@ void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md)
void UBBoardController::closing() void UBBoardController::closing()
{ {
mIsClosing = true; mIsClosing = true;
lastWindowClosed();
ClearUndoStack(); ClearUndoStack();
showKeyboard(false); showKeyboard(false);
lastWindowClosed();
} }
void UBBoardController::lastWindowClosed() void UBBoardController::lastWindowClosed()

Loading…
Cancel
Save