Fixes #1309: Do not allow saving while dialogs are opened, just like vanilla

This limitation could be removed post-1.0 by serializing the state of open windows.