Commit 4f84f68b authored by vdalv's avatar vdalv
Browse files

Fix issue #287 and a typo

parent 5f9f17f9
......@@ -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()
......
......@@ -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_YOLO='YOLO'
\ No newline at end of file
FORMAT_PASCALVOC='PascalVOC'
FORMAT_YOLO='YOLO'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment