Serial generator parameters are not reset to the default values, if a configuration without generator parameters is loaded
This issue can be reproduced by first loading a configuration with generation parameters and then loading another configuration without them. The idea was to allow the user to set those parameters before loading a configuration. However, this behavior is confusing, because settings like "Enable generator by default" and "Auto-generate when loading" are reset, and the serial generator itself gets disabled, which is as intended, because generator settings shouldn't be preserved.
This behavior is currently implemented in "configurationreader.cpp", inside ConfigurationReader::readFrom(), lines 653 to 655:
bool ConfigurationReader::readFrom(QIODevice *device)
{
serialGeneratorSettings_.doexport = false; // Default settings if no "generator" element is found
serialGeneratorSettings_.genenable = false;
serialGeneratorSettings_.autogen = false;
...
}
Therefore, a means to reset the serial generator parameters should be implemented.