mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 19:32:30 +12:00
catch AttributeError in plotTreeView double click event
This commit is contained in:
parent
9e8e7a234f
commit
6fd6a68d9d
|
@ -201,5 +201,8 @@ class plotTreeView(QTreeWidget):
|
|||
def mouseDoubleClickEvent(self, event):
|
||||
item = self.currentItem()
|
||||
# Catching double clicks to forbid collapsing of toplevel items
|
||||
if item.parent():
|
||||
QTreeWidget.mouseDoubleClickEvent(self, event)
|
||||
try:
|
||||
if item.parent():
|
||||
QTreeWidget.mouseDoubleClickEvent(self, event)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue