mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-15 17:34:33 +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):
|
def mouseDoubleClickEvent(self, event):
|
||||||
item = self.currentItem()
|
item = self.currentItem()
|
||||||
# Catching double clicks to forbid collapsing of toplevel items
|
# Catching double clicks to forbid collapsing of toplevel items
|
||||||
if item.parent():
|
try:
|
||||||
QTreeWidget.mouseDoubleClickEvent(self, event)
|
if item.parent():
|
||||||
|
QTreeWidget.mouseDoubleClickEvent(self, event)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in a new issue