hale icon indicating copy to clipboard operation
hale copied to clipboard

Removal of project variable is not persisted on save

Open florianesser opened this issue 5 years ago • 3 comments

In a project that contains a project variable, the removal of a variable via the settings dialog is not persisted to the project file upon save.

florianesser avatar Sep 16 '19 08:09 florianesser

when removing the project variable and in addition change status of e.g. of OccuredValues in source data the removal is persisted. When closing the project a "Save changes ?" window will appear which is not the case when only the variable has been removed

Claudia-WE avatar Sep 20 '19 12:09 Claudia-WE

To make it more clear: remove variable --> Apply and Close --> change not persisted remove variable and change status of e.g. occuredvalues --> Apply and Close --> change persisted

Claudia-WE avatar Sep 20 '19 12:09 Claudia-WE

This is what I observe:

  1. if I create two or more project variables (test_variable.png);
  2. and I use them for alignments of the kind "Formatted string" (variable_1.png and variable_2.png);
  3. then, they are present in the final project file;
  4. if then I delete the project variable test_variable_1 but don't delete the alignment itself, which uses it, I still find the variable in the project file;
  5. if instead I delete the variable and delete the alignment (with right-click >> delete), then also in the project file the variable disappears and the change persists.

My conclusion would be that this might not be considered a bug but we can simply document it somewhere.

test_variables

variable_2

variable_1

Flaminietta avatar Dec 03 '21 09:12 Flaminietta