| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Editra
Revision: 56114
Author: CJP
Date: 06 Oct 2008 08:59:36
Changes:Fix bug in trying to access an stc object that is already dead when updating the status bar.
Files:| ... | ...@@ -231,16 +231,20 @@ | |
| 231 | 231 | if nb is None: |
| 232 | 232 | return |
| 233 | 233 | |
| 234 | cbuff = nb.GetCurrentCtrl() | |
| 235 | doc = cbuff.GetDocument() | |
| 236 | pstatbar.ProgressStatusBar.SetStatusText(self, doc.GetEncoding(), | |
| 237 | ed_glob.SB_ENCODING) | |
| 238 | pstatbar.ProgressStatusBar.SetStatusText(self, | |
| 239 | GetFtypeDisplayName(cbuff.GetLangId()), | |
| 240 | ed_glob.SB_LEXER) | |
| 241 | # pstatbar.ProgressStatusBar.SetStatusText(self, | |
| 242 | # , | |
| 243 | # ed_glob.SB_READONLY) | |
| 234 | try: | |
| 235 | cbuff = nb.GetCurrentCtrl() | |
| 236 | doc = cbuff.GetDocument() | |
| 237 | pstatbar.ProgressStatusBar.SetStatusText(self, doc.GetEncoding(), | |
| 238 | ed_glob.SB_ENCODING) | |
| 239 | pstatbar.ProgressStatusBar.SetStatusText(self, | |
| 240 | GetFtypeDisplayName(cbuff.GetLangId()), | |
| 241 | ed_glob.SB_LEXER) | |
| 242 | # pstatbar.ProgressStatusBar.SetStatusText(self, | |
| 243 | # , | |
| 244 | # ed_glob.SB_READONLY) | |
| 244 | 245 | |
| 245 | self.AdjustFieldWidths() | |
| 246 | self.AdjustFieldWidths() | |
| 247 | except wx.PyDeadObjectError: | |
| 248 | # May be called asyncronasly after the control is already dead | |
| 249 | return | |
| 246 | 250 |
| ... | ...@@ -22,6 +22,7 @@ | |
| 22 | 22 | +Fix case where encoding can be None in when initializing the preference dialog |
| 23 | 23 | +Fix some issues with switching search direction |
| 24 | 24 | +F3 causing search to skip every other match when search bar has focus |
| 25 | +Fix bug in updating status after a conrol object was already deleted | |
| 25 | 26 | |
| 26 | 27 | #-----------------------------------------------------------------------------# |
| 27 | 28 |