Fix verify image issue 248

This commit is contained in:
vdalv 2018-05-16 23:28:46 -07:00 committed by darrenl
parent 508a4c8b37
commit 219e50dbfc

View File

@ -967,11 +967,13 @@ class MainWindow(QMainWindow, WindowMixin):
self.imageData = self.labelFile.imageData
self.lineColor = QColor(*self.labelFile.lineColor)
self.fillColor = QColor(*self.labelFile.fillColor)
self.canvas.verified = self.labelFile.verified
else:
# Load image:
# read data first and store for saving into label file.
self.imageData = read(unicodeFilePath, None)
self.labelFile = None
self.canvas.verified = False
image = QImage.fromData(self.imageData)
if image.isNull():