On Tue, 21 Oct 2008, Frank Niessink wrote:

> 2008/10/21 Jerome Laheurte <[EMAIL PROTECTED]>:

>> The search doesn't work any more for me, but I have to test in the
>> release branch (I'm currently running Trunk locally merged with the
>> 0.71 branch).
>
> Works for me, at least with the simple testing I just did.

Okay, this seems to be related to commit #1436. The problem is in the 
following code, in domain/base/filter.py:

         if self.treeMode():
             for item in itemsToRemoveFromSelf.copy():
                 itemsToRemoveFromSelf.update(item.children(recursive=True))


Unfortunately, if some children of an item are not visible, they're 
still added to the list of items to remove, thus raising an 
IndexError. I think. I tried to fix this by adding

             itemsToRemoveFromSelf=set([item for item in 
itemsToRemoveFromSelf if item in self])

after the previous code, but it doesn't work.

To reproduce, just create a task with two subtasks, filter out 
completed tasks, mark a subtask completed, and enter something in the 
search control.

Cheers
Jérôme

Reply via email to