Bug report #11433
Processing: Help editor does not save the text
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19709|
The user can add alg description etc., but the data are not saved in the model (when it is reopened, the text is not shown)
#6 Updated by Arnaud Morvan over 4 years ago
Actually in master help edition dialog work on a copy of the algorithm.
The help dialog take the (cloned) algorithm as a parameter,
during initialization, it copy algorithm help content into a local variable (but it is reference copy)
it modify the local dictionnary during edition, and the (cloned) algorithm help content in the same time.
it affect the local dictionnary to the (cloned) algorithm (but it the same reference affectation <=> do nothing)
Note : with the script dialog, after comming back from the help dialog, it get the help content from the help dialog local variable (if help dialog was accepted).
I can propose a simple solution for the model case:
do the same thing that the script dialog
#7 Updated by Arnaud Morvan over 4 years ago
I notice that, for the script case, if script help file already exist, help content is written to file on help dialog validation, and written a second time when script is saved.
If script file does not exist, it will be saved only when script file is saved.
For the model case, help content is only write down on model save.
This is not consistent.
I propose to not save script help content in help validation but only in caller acceptation (model or script dialog)
like this it remove some specific code to script and models from the help dialog.