Fixed issue #937

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2021-11-30 23:08:59 +01:00
parent 64b27bc7a1
commit a63da8d0a8
No known key found for this signature in database
GPG key ID: D850A5F772E880F9

View file

@ -197,6 +197,8 @@ class characterTreeView(QTreeWidget):
def mouseDoubleClickEvent(self, event):
item = self.currentItem()
if item is None:
return
# Catching double clicks to forbid collapsing of toplevel items
if item.parent():
QTreeWidget.mouseDoubleClickEvent(self, event)