Fixed Results model, which still had invalid code since the latest qtlib tree_model changes.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40171
This commit is contained in:
hsoft 2009-10-03 10:48:08 +00:00
parent 22d9db28ff
commit df6c9b3740
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class ResultsModel(TreeModel):
assert node.dupe is dupe
return self.createIndex(row, 0, node)
subrow = group.dupes.index(dupe)
subnode = node.children[subrow]
subnode = node.subnodes[subrow]
assert subnode.dupe is dupe
return self.createIndex(subrow, 0, subnode)
except ValueError: # the dupe is not there anymore