mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 19:32:30 +12:00
Merge pull request #1015 from amconners/develop
catch AttributeError in plotTreeView double click event (fixes #1014)
This commit is contained in:
commit
cb5ee702d3
|
@ -200,6 +200,9 @@ class plotTreeView(QTreeWidget):
|
|||
|
||||
def mouseDoubleClickEvent(self, event):
|
||||
item = self.currentItem()
|
||||
if not item:
|
||||
return
|
||||
|
||||
# Catching double clicks to forbid collapsing of toplevel items
|
||||
if item.parent():
|
||||
QTreeWidget.mouseDoubleClickEvent(self, event)
|
||||
|
|
Loading…
Reference in a new issue