소스 검색

Fix undefined description when display_label_popup=False

Kentaro Wada 2 년 전
부모
커밋
cf53837eef
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)