It fixes the following bug: when Dump Python is called first with checked, and after that - with unchecked "Save GUI State" checkbox -- the Python script is written with errors as IParameters has internal "DympPython" property set ON (left from the first call). Currently, it is possible to set it OFF, and it is done in SalomeApp_Application::OnDumpPython() function.
else anID = theID;
_PTR(AttributeParameter) ap = study->GetCommonParameters(anID, 0);
- ap->SetBool(_AP_DUMP_PYTHON_, true);
+ ap->SetBool(_AP_DUMP_PYTHON_, !isDumpPython(study, theID));
}
bool SALOMEDS_IParameters::isDumpPython(_PTR(Study) study, const string& theID)