forked from IPKM/nmreval
datawidget.py: raise AttributeError manually if item is graph, was not always raised; maybe problem of #52
This commit is contained in:
parent
ac4a4d3b8e
commit
def2a99ed8
@ -350,6 +350,9 @@ class DataTree(QtWidgets.QTreeWidget):
|
||||
_id = item.data(0, QtCore.Qt.UserRole)
|
||||
if _id in ids:
|
||||
try:
|
||||
if item.parent() is None:
|
||||
raise AttributeError
|
||||
|
||||
idx = item.parent().indexOfChild(item)
|
||||
item.parent().takeChild(idx)
|
||||
if _id in self._checked_sets:
|
||||
|
Loading…
Reference in New Issue
Block a user