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)
void UBBoardController::closing()
{
mIsClosing = true;
lastWindowClosed();
ClearUndoStack();
showKeyboard(false);
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