Skip to content

Commit

Permalink
Check if filename is None
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 31, 2018
1 parent e34600c commit b0235b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ def __init__(self, filename=None, output=None, store_data=True,
# Populate the File menu dynamically.
self.updateFileMenu()
# Since loading the file may take some time, make sure it runs in the background.
self.queueEvent(partial(self.loadFile, self.filename))
if self.filename is not None:
self.queueEvent(partial(self.loadFile, self.filename))

# Callbacks:
self.zoomWidget.valueChanged.connect(self.paintCanvas)
Expand Down

0 comments on commit b0235b6

Please sign in to comment.