Commit 68c7da58 authored by Clément Fauconnier's avatar Clément Fauconnier

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

parent 2a92fc1b
...@@ -1885,9 +1885,9 @@ void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md) ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment