mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 07:29:21 +02:00
IDE: don't lose the case of unit name when saving the unit if its filename was suggested in lowercase and user didn't touch it
git-svn-id: trunk@32908 -
This commit is contained in:
parent
23f8a8644e
commit
d09acc30ff
@ -5560,6 +5560,9 @@ begin
|
||||
// check unitname
|
||||
if FilenameIsPascalUnit(NewFilename) then begin
|
||||
NewUnitName:=ExtractFileNameOnly(NewFilename);
|
||||
// do not rename the unit if new filename differs from its name only in case
|
||||
if LowerCase(OldUnitName)=NewUnitName then
|
||||
NewUnitName:=OldUnitName;
|
||||
if NewUnitName='' then begin
|
||||
Result:=mrCancel;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user