소스 검색

Fix typo in labelme/app.py

Kentaro Wada 6 년 전
부모
커밋
22518a7917
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -796,7 +796,7 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
                 self.imagePath, Qt.MatchExactly
             )
             if len(items) > 0:
-                if len(items) == 1:
+                if len(items) != 1:
                     raise RuntimeError('There are duplicate files.')
                 items[0].setCheckState(Qt.Checked)
             # disable allows next and previous image to proceed