Changeset 4217

Show
Ignore:
Timestamp:
06/30/08 11:06:28 (2 months ago)
Author:
paul
Message:

My prior fix wouldn't work because the call was wrapped in a callAfterInterval.
This change targets the actual line that failed.

Files:

Legend:

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

    r4215 r4217  
    334334        col_obj = self.grid.Columns[col] 
    335335        field = col_obj.DataField 
    336         try: 
    337             dabo.ui.callAfterInterval(200, col_obj._updateDynamicProps) 
    338             dabo.ui.callAfterInterval(200, col_obj._updateCellDynamicProps, row) 
    339         except dabo.ui.deadObjectException: 
    340             return None 
     336        dabo.ui.callAfterInterval(200, col_obj._updateDynamicProps) 
     337        dabo.ui.callAfterInterval(200, col_obj._updateCellDynamicProps, row) 
    341338        if bizobj: 
    342339            if field and (row < bizobj.RowCount): 
     
    576573                except AttributeError: 
    577574                    needRefresh = True 
    578                 setattr(self, prop, func(*args, **kwargs)) 
     575                try: 
     576                    setattr(self, prop, func(*args, **kwargs)) 
     577                except dabo.ui.deadObjectException: 
     578                    needRefresh = False 
    579579                if needRefresh or oldVal != getattr(self, prop): 
    580580                    needRefresh = True