GNOME Bugzilla – Bug 781890
Signature editor doesn't set correct format
Last modified: 2017-04-28 10:58:33 UTC
Using Edit->Preferences->Composer Preferences->Signatures->Edit for an HTML signature while also having off "Composer Preferences->General->[ ] Format messages in HTML, can lead to an issue where the HTML signature is opened as a plain text in the editor, which is wrong. It's about timing, where the below backtrace shows the issue. Notice the e_content_editor_set_html_mode() being called twice, first time with FALSE, to obey the option from General tab, the second time with 1, to set the format as the signature has saved, but this is done in recursion. The timing is crucial, because I've not been able to reproduce this with valgrind, which slows down things significantly.
+ Trace 237405
I changed the code to load signature into the editor only after the editor is fully setup, not in its constructed(), which avoids this "race condition". Created commit 4808599 in evo master (3.25.2+) Created commit c83f5ce in evo gnome-3-24 (3.24.2+)