Changeset 9869

Show
Ignore:
Timestamp:
07/01/08 00:23:07 (2 months ago)
Author:
steve-e
Message:

Fix really bad modelfilter bug that may have caused segfaults.

This also fixes the problem of showing the wrong icon when expanding metacontacts.

Example:
We have the groups A, B, C in our child model
But only A and C are visible (and therefore in modelfilter)

Imagine we have a childIter_G pointing to group B
Getting its path in the childmodel, will give us (lets say) 2
2 means now the second group/row in the CHILD model
We now pass this to the tree and tell him "Expand row 2"
The tree itself is looking at the 2nd row of modelfilter: "Hey modelfilter, expand row number 2"

For modelfilter row number 2 is C and NOT B

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9868 r9869  
    907907                        accounts = [account] 
    908908 
    909                 path = self.model.get_path(child_iter) 
    910909                if account in self.collapsed_rows and \ 
    911910                self.model.iter_has_child(child_iter): 
     
    10581057                        # We are the big brother and have a visible family 
    10591058                        for child_iter in child_iters: 
    1060                                 path = self.model.get_path(child_iter) 
     1059                                child_path = self.model.get_path(child_iter) 
     1060                                path = self.modelfilter.convert_child_path_to_path(child_path) 
    10611061 
    10621062                                if not self.tree.row_expanded(path) and icon_name != 'event':