Fix: MAGN-683 Switching tab eventually causes crash in undo
Merge branch 'master' into MAGN683
Merge pull request #727 from Benglin/MAGN683

Fix: MAGN-683 Switching tab eventually causes crash in undo