Fix problem with restoring the tree position when dropping hierarchical items onto user categories

This commit is contained in:
Charles Haley 2011-02-24 10:50:38 +00:00
parent 38a3d25562
commit a8c278d449

View File

@ -1446,6 +1446,9 @@ class TagsModel(QAbstractItemModel): # {{{
(not equals_match and lower(name).find(txt) >= 0):
self.path_found = path
return True
for i,c in enumerate(tag_item.children):
if process_tag(depth+1, self.createIndex(i, 0, c), c, start_path):
return True
return False
def process_level(depth, category_index, start_path):