|  | @@ -393,7 +393,8 @@ 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.
 | 
	
		
			
				|  |  | -        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)
 |