hakaishi / nobleNote

Program to make and manage notes
Other
30 stars 4 forks source link

note geometry not loaded due do wrong note window initialization order #192

Closed nebomuk closed 9 years ago

nebomuk commented 9 years ago

The current initialization order is: Create a note window initialize child widgets load settings during showEvent (asynchronously) resize during show event --> this fails, because it calls noteDescriptor_->uuid().toString(), but noteDescriptor loads the uuid from the file, asynchronously. Uuid is a default value and not initialized from the note html file. --> loading from the settings fails, because uuid is 0000....

Initialization order should be: load note html file (asynchronously) load settings with the uuid from the file (asynchronously) load QTextDocument (asynchronously) create note window initialize child widgets