From a8c278d44960b02ae0d74f1fa1b84949ca80ae1e Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 24 Feb 2011 10:50:38 +0000 Subject: [PATCH] Fix problem with restoring the tree position when dropping hierarchical items onto user categories --- src/calibre/gui2/tag_view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/tag_view.py b/src/calibre/gui2/tag_view.py index c2949f777a..d53f510e55 100644 --- a/src/calibre/gui2/tag_view.py +++ b/src/calibre/gui2/tag_view.py @@ -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):