FIXED: process rotateImgAction after autoRecognition without any click on file list will raise A ERROR : array out of index

This commit is contained in:
HinGwenWoong 2022-01-19 11:11:30 +08:00
parent a519d4ddbd
commit a32e7ce77e

View File

@ -1922,7 +1922,7 @@ class MainWindow(QMainWindow, WindowMixin):
uncheckedList = [i for i in self.mImgList if i not in self.fileStatedict.keys()]
self.autoDialog = AutoDialog(parent=self, ocr=self.ocr, mImgList=uncheckedList, lenbar=len(uncheckedList))
self.autoDialog.popUp()
self.currIndex=len(self.mImgList)
self.currIndex = len(self.mImgList) - 1
self.loadFile(self.filePath) # ADD
self.haveAutoReced = True
self.AutoRecognition.setEnabled(False)