소스 검색

Clear label list

なるみ 6 년 전
부모
커밋
cd665aacc1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      labelme/app.py

+ 2 - 0
labelme/app.py

@@ -1442,6 +1442,8 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
                 item = self.fileListWidget.currentItem()
                 item.setCheckState(Qt.Unchecked)
 
+                self.labelList.clear()
+
     # Message Dialogs. #
     def hasLabels(self):
         if not self.labelList.itemsToShapes: