Skip to content
Snippets Groups Projects
Commit af1345eb authored by Kentaro Wada's avatar Kentaro Wada
Browse files

Check if filename is None

parent c7442b77
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,7 @@ class MainWindow(QMainWindow, WindowMixin):
# Populate the File menu dynamically.
self.updateFileMenu()
# Since loading the file may take some time, make sure it runs in the background.
if self.filename is not None:
self.queueEvent(partial(self.loadFile, self.filename))
# Callbacks:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment