提交 9fdda01a 编写于 作者: J Jonas 提交者: Kentaro Wada

Fixed edit error

When editing a label with an group ID and u delete it, labelme crashed:
Fixed error "TypeError: setData() takes no keyword arguments"
Deleting the keywords fixed this error
上级 334a8b6d
......@@ -918,7 +918,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.setDirty()
if not self.uniqLabelList.findItemsByLabel(shape.label):
item = QtWidgets.QListWidgetItem()
item.setData(role=Qt.UserRole, value=shape.label)
item.setData(Qt.UserRole, shape.label)
self.uniqLabelList.addItem(item)
def fileSearchChanged(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册