X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..a4ebf7ba6189c29469eaa8c43717b18d1f61b973:/wxPython/wx/py/frame.py diff --git a/wxPython/wx/py/frame.py b/wxPython/wx/py/frame.py index e716fb7492..b74d652123 100644 --- a/wxPython/wx/py/frame.py +++ b/wxPython/wx/py/frame.py @@ -544,6 +544,7 @@ class Frame(wx.Frame): event.Check(win.lineNumbers) elif id == ID_AUTO_SAVESETTINGS: event.Check(self.autoSaveSettings) + event.Enable(self.config is not None) elif id == ID_SAVESETTINGS: event.Enable(self.config is not None and hasattr(self, 'DoSaveSettings')) @@ -552,12 +553,15 @@ class Frame(wx.Frame): elif id == ID_EXECSTARTUPSCRIPT: event.Check(self.execStartupScript) + event.Enable(self.config is not None) elif id == ID_SAVEHISTORY: - event.Check(self.saveHistory and self.dataDir is not None) + event.Check(self.saveHistory) + event.Enable(self.dataDir is not None) elif id == ID_EDITSTARTUPSCRIPT: event.Enable(hasattr(self, 'EditStartupScript')) - + event.Enable(self.dataDir is not None) + elif id == ID_FIND: event.Enable(hasattr(win, 'DoFindNext')) elif id == ID_FINDNEXT: