Explorar el Código

Fix undefined description when display_label_popup=False

Kentaro Wada hace 2 años
padre
commit
cf53837eef
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)