177 Public method to start a check for one file. |
177 Public method to start a check for one file. |
178 |
178 |
179 The results are reported to the __processResult slot. |
179 The results are reported to the __processResult slot. |
180 @keyparam codestring optional sourcestring (str) |
180 @keyparam codestring optional sourcestring (str) |
181 """ |
181 """ |
|
182 if not self.files: |
|
183 self.__finish() |
|
184 return |
|
185 |
182 self.filename = self.files.pop(0) |
186 self.filename = self.files.pop(0) |
183 self.checkProgress.setValue(self.progress) |
187 self.checkProgress.setValue(self.progress) |
184 self.checkProgressLabel.setPath(self.filename) |
188 self.checkProgressLabel.setPath(self.filename) |
185 QApplication.processEvents() |
189 QApplication.processEvents() |
186 self.__resort() |
190 self.__resort() |
199 except (UnicodeError, IOError) as msg: |
203 except (UnicodeError, IOError) as msg: |
200 self.noResults = False |
204 self.noResults = False |
201 self.__createResultItem( |
205 self.__createResultItem( |
202 self.filename, 1, 0, |
206 self.filename, 1, 0, |
203 self.tr("Error: {0}").format(str(msg)) |
207 self.tr("Error: {0}").format(str(msg)) |
204 .rstrip()[1:-1], "") |
208 .rstrip(), "") |
205 self.progress += 1 |
209 self.progress += 1 |
206 # Continue with next file |
210 # Continue with next file |
207 self.check() |
211 self.check() |
208 return |
212 return |
209 |
213 |