fixed another bug for toolbar and menu states update when creating a MDI subwindow