[Spambayes-checkins] spambayes/Outlook2000/dialogs processors.py,
1.13, 1.14
Mark Hammond
mhammond at users.sourceforge.net
Sat Dec 20 06:17:49 EST 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv31142a
Modified Files:
processors.py
Log Message:
If the user attempts to close the Manager dialog while there is a problem
preventing us being enabled, confirm they really want to close it
(The 'general' tab, which is where the problem is displayed may not be
focussed)
Index: processors.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/processors.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** processors.py 16 Dec 2003 05:06:33 -0000 1.13
--- processors.py 20 Dec 2003 11:17:47 -0000 1.14
***************
*** 78,81 ****
--- 78,89 ----
class CloseButtonProcessor(ButtonProcessor):
def OnClicked(self, id):
+ problem = self.window.manager.GetDisabledReason()
+ if problem:
+ q = "There appears to be a problem with SpamBayes' configuration" \
+ "\r\nIf you do not fix this problem, SpamBayes will be" \
+ " disabled.\r\n\r\n" + problem + \
+ "\r\n\r\nDo you wish to re-configure?"
+ if self.window.manager.AskQuestion(q):
+ return
win32gui.EndDialog(self.window.hwnd, id)
def GetPopupHelpText(self, ctrlid):
More information about the Spambayes-checkins
mailing list