Ignore:
Timestamp:
03/07/12 19:38:57 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
7a8d5e3748b65d64fe9157486a64446219c91c10
Message:

Check index when accessing the flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWItemModels.py

    r10046 r10459  
    109109     
    110110    def flags(self, index): 
    111         if index.isValid(): 
     111        if index.isValid() and index.row() < len(self._other_data): 
    112112            return self._other_data[index.row()].get("flags", self._flags) 
    113113        else: 
Note: See TracChangeset for help on using the changeset viewer.