IDE: for compatibility with older IDE versions: always store MainUnit id in lpi, bug #17185

git-svn-id: trunk@27106 -
This commit is contained in:
mattias 2010-08-16 08:11:19 +00:00
parent 3c18a7f2dd
commit 4eb55fc1fb

View File

@ -2670,7 +2670,7 @@ begin
MacroValues.SaveToXMLConfig(xmlconfig,Path+'MacroValues/');
// properties
xmlconfig.SetDeleteValue(Path+'General/MainUnit/Value', MainUnitID,0);
xmlconfig.SetValue(Path+'General/MainUnit/Value', MainUnitID); // always write a value to support opening by older IDEs
xmlconfig.SetDeleteValue(Path+'General/AutoCreateForms/Value',
AutoCreateForms,true);
xmlconfig.SetDeleteValue(Path+'General/Title/Value', Title,'');