Skip to content

Commit

Permalink
Fix undefined description when display_label_popup=False
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Apr 29, 2023
1 parent 907a871 commit cf53837
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ def newShape(self):
text = items[0].data(Qt.UserRole)
flags = {}
group_id = None
description = ""
if self._config["display_label_popup"] or not text:
previous_text = self.labelDialog.edit.text()
text, flags, group_id, description = self.labelDialog.popUp(text)
Expand Down

0 comments on commit cf53837

Please sign in to comment.