Fix issue #287 and a typo

This commit is contained in:
vdalv 2018-06-23 01:14:30 -07:00
parent 5f9f17f9b4
commit 4f84f68b96
2 changed files with 6 additions and 3 deletions

View File

@ -1190,7 +1190,10 @@ class MainWindow(QMainWindow, WindowMixin):
# If the labelling file does not exist yet, create if and
# re-save it with the verified attribute.
self.saveFile()
self.labelFile.toggleVerify()
if self.labelFile != None:
self.labelFile.toggleVerify()
else:
return
self.canvas.verified = self.labelFile.verified
self.paintCanvas()

2
libs/constants.py Normal file → Executable file
View File

@ -12,5 +12,5 @@ SETTING_PAINT_LABEL = 'paintlabel'
SETTING_LAST_OPEN_DIR = 'lastOpenDir'
SETTING_AUTO_SAVE = 'autosave'
SETTING_SINGLE_CLASS = 'singleclass'
FORMAT_PASCALVOC='PscalVOC'
FORMAT_PASCALVOC='PascalVOC'
FORMAT_YOLO='YOLO'