Merge pull request #1015 from amconners/develop

catch AttributeError in plotTreeView double click event (fixes #1014)
This commit is contained in:
Tobias Frisch 2022-03-31 02:27:11 +02:00 committed by GitHub
commit cb5ee702d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)