Ver código fonte

Fix undefined description when display_label_popup=False

Kentaro Wada 2 anos atrás
pai
commit
cf53837eef
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      labelme/app.py

+ 1 - 0
labelme/app.py

@@ -1349,6 +1349,7 @@ class MainWindow(QtWidgets.QMainWindow):
             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)