Changeset 514


Ignore:
Timestamp:
Jun 3, 2009 5:55:53 PM (14 years ago)
Author:
ajj
Message:

Fixed filter bug whereby hitting refresh while a filter was applied would cause multiples of
the non-displayed (filtered out) entries. Fix is to re-filter the list with no filter, refresh, then
re-filter with the previously applied filter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/utils/bt5/bt5plot2/bt5plot2

    r479 r514  
    127127         
    128128        deletelist = [] 
     129        tempstr = self.filter_entry.get_text() 
     130        del self.filter_string[:] 
     131        self.filter_string.append("") 
     132        self.filelistfilter.refilter() 
    129133         
    130134        treestore = self.filelistview.get_model() 
     
    137141        for path in deletelist: 
    138142            treestore.remove(treestore.get_iter(path)) 
     143 
     144        del self.filter_string[:] 
     145        self.filter_string.append(tempstr) 
     146        self.filelistfilter.refilter() 
    139147        return 
    140148 
Note: See TracChangeset for help on using the changeset viewer.