Changeset 4205

Show
Ignore:
Timestamp:
06/27/08 16:04:41 (5 months ago)
Author:
paul
Message:

Fixed the datanav2 Grid to only process the double-click if it happened in an
actual cell. Prior to this, I was getting NoRecordsException? from my app when
the user double-clicked an empty grid. Also, clicking in an area of a grid
with no cells will no longer do the processEditRecord(), which is what we
really expect.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/lib/datanav2/Grid.py

    r3303 r4205  
    6161        By default, this is interpreted as a request to edit the record. 
    6262        """ 
    63         self.processEditRecord() 
     63        if evt.EventData["col"] is not None and evt.EventData["row"] is not None: 
     64            self.processEditRecord() 
    6465 
    6566    def processEditRecord(self):