oracc / nammu

Oracc GUI
GNU General Public License v3.0
12 stars 10 forks source link

Title is set before filename attribute is created #401

Closed ageorgou closed 4 years ago

ageorgou commented 5 years ago

In the current development branch (c919652), there is a small bug that does not affect behaviour. When launching Nammu:

2019-08-02 17:01:21 - NammuController - INFO - Welcome to Nammu!
2019-08-02 17:01:21 - NammuController - INFO - You can choose an option from the menu to open an ATF or create a new one from a template, or just start typing in the text area.
2019-08-02 17:01:21 - NammuController - DEBUG - Undefined method currentFilename

This is because we create and display the NammuView at line 95 of NammuController, which tries to access the controller's currentFilename, but that attribute is not created until line 99.

Creating the attribute first should fix this.