Undo menu disabled when undo is available.

I have two documents. D1,D2.

Make a change in D1,
Switch to D2
Make a change in D2
Switch back to D1
The Edit\Undo menu is disabled but Ctrl-Z will still undo the change in D1.