msgTitle = wx.GetApp().GetAppName()
if not msgTitle:
msgTitle = _("Document Options")
- wx.MessageBox("Document interface changes will not appear until the application is restarted.",
+ wx.MessageBox(_("Document interface changes will not appear until the application is restarted."),
msgTitle,
wx.OK | wx.ICON_INFORMATION,
self.GetParent())
if isinstance(document, ChildDocument) and document.GetParentDocument() == parentDocument:
if document.GetFirstView().GetFrame():
document.GetFirstView().GetFrame().SetFocus()
- if document.GetFirstView().OnClose(deleteWindow = False):
- if document.GetFirstView().GetFrame():
- document.GetFirstView().GetFrame().Close() # wxBug: Need to do this for some random reason
- else:
+ if not document.GetFirstView().OnClose():
return False
return True