mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:56:02 +02:00
IDE: Save resource file after a project is renamed (Save Project As). Issue #39958.
This commit is contained in:
parent
8affac89f3
commit
2f8deeefee
@ -532,7 +532,7 @@ begin
|
||||
// Now it gets saved once the first time after IDE started.
|
||||
end;
|
||||
// codebuffer of new .res file
|
||||
if not UpdateResCodeBuffer and (LastResFileName=resFileName) then
|
||||
if not UpdateResCodeBuffer then
|
||||
PerformSave := False; // Do not save an unchanged resource file.
|
||||
// codebuffer of new .lrs file
|
||||
UpdateLrsCodeBuffer;
|
||||
@ -713,7 +713,6 @@ function TProjectResources.RenameDirectives(const CurFileName, NewFileName: Stri
|
||||
var
|
||||
NewX, NewY, NewTopLine: integer;
|
||||
CodeBuf, NewCode: TCodeBuffer;
|
||||
|
||||
oldLrsFileName, newLrsFileName: String;
|
||||
begin
|
||||
//DebugLn(['TProjectResources.RenameDirectives CurFileName="',CurFileName,'" NewFileName="',NewFileName,'"']);
|
||||
@ -738,6 +737,7 @@ begin
|
||||
// update codebuffers of new .res and .lrs files
|
||||
UpdateResCodeBuffer;
|
||||
UpdateLrsCodeBuffer;
|
||||
LastSavedRes := '';
|
||||
|
||||
// update {$I filename} directive
|
||||
if CodeToolBoss.FindIncludeDirective(CodeBuf, 1, 1,
|
||||
|
@ -4070,7 +4070,7 @@ begin
|
||||
// mrCancel: continue saving other files
|
||||
end;
|
||||
|
||||
// update all lrs files
|
||||
// update all resource files
|
||||
if sfSaveToTestDir in Flags then
|
||||
MainBuildBoss.UpdateProjectAutomaticFiles(EnvironmentOptions.GetParsedTestBuildDirectory)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user