Skip to content

Commit

Permalink
Fixed edit error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jonas authored and wkentaro committed Mar 20, 2020
1 parent 334a8b6 commit 9fdda01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ def editLabel(self, item=None):
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):
Expand Down

0 comments on commit 9fdda01

Please sign in to comment.