UnitName row is added or removed from the Unit entry in lpi file
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
* Check Steps to reproduce
This occurs because TUnitInfo.fUnitName is only properly set when ReadUnitNameFromSource is called, e.g., when unit is open in the IDE.
If the unit is not open in the IDE anytime in the session and lpi is saved, the UnitName row is removed.
If the unit is open in IDE and lpi is saved, UnitName row is added back
Steps to reproduce:
- Create an empty project and save to disk.
Check lpi file. Unit1 UnitName is stored:
&LtPos;UnitName Value="Unit1"/>
-
Close Unit1 and keep only project1.lpr open in IDE
-
Reload project (Close IDE to be sure)
-
Create a new form (Unit2). Save
Check lpi file. Unit1 UnitName is NOT stored
-
Open Unit1 in IDE
-
Add some changes to project worth saving lpi (add a button to form)
Check lpi file. Unit1 UnitName is stored again.