Call saveUndoState when inspector block selector is changed. (mark document as dirty). Fixes #257.