Changeset 4294

Show
Ignore:
Timestamp:
07/19/08 09:20:45 (1 month ago)
Author:
ed
Message:

Added explicit setting of Accepted to False to the _onCancel() and _onNo() methods. If a dialog was re-used, and Accepted was set to True in the first use, clicking Cancel the second time resulted in Accepted=True again, which is not correct.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dDialog.py

    r4228 r4294  
    367367            self.EndModal(kons.DLG_OK) 
    368368    def _onCancel(self, evt): 
     369        self.Accepted = False 
    369370        try: 
    370371            self.onCancel() 
     
    384385            self.EndModal(kons.DLG_YES) 
    385386    def _onNo(self, evt): 
     387        self.Accepted = False 
    386388        if self.runNo() is not False: 
    387389            self.EndModal(kons.DLG_NO)