Do

SupportsItem () being applied to ModifierItems children

Bug #384358 reported by Stephen Elson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Do
Invalid
Undecided
Unassigned

Bug Description

If modifier items have children which can be expanded (e.g. directories), the children are filtered by SupportsItem () rather than SupportsModifierItemForItems ().

For example, here the items are directories or files not within /foo, and modifier items are directories within /foo. However, expanding the modifier items is not possible as their children are filtered by SupportsItem.

public override bool SupportsItem (Item item)
{
 string path = GetPath (item);

 return !path.StartsWith ("/foo");
}

public override bool SupportsModifierItemForItems (IEnumerable<Item> items, Item modItem)
{
 string path = GetPath (modItem);

 return Directory.Exists (path) && path.StartsWith ("/foo");
}

This may be related to bug 318285.

description: updated
summary: - SupportsItem () being applied to expanded ModifierItems
+ SupportsItem () being applied to ModifierItems children
description: updated
description: updated
description: updated
Revision history for this message
Robert Dyer (psybers) wrote :

Duplicate of bug 318285 (which has a fix in trunk as of rev 1214)

Changed in do:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.