mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
ide: find lfm refs: better hack for revert designer, from Włodzimierz Bień
This commit is contained in:
parent
d80d642a7e
commit
09dee74383
@ -538,6 +538,7 @@ var
|
|||||||
TreeOfPCodeXYPosition, LFMTreeOfPCodeXYPosition: TAVLTree;
|
TreeOfPCodeXYPosition, LFMTreeOfPCodeXYPosition: TAVLTree;
|
||||||
Refs, OldRefs: TSrcNameRefs;
|
Refs, OldRefs: TSrcNameRefs;
|
||||||
AUnitInfo: TUnitInfo;
|
AUnitInfo: TUnitInfo;
|
||||||
|
PageIdx,WinID:integer;
|
||||||
begin
|
begin
|
||||||
Result:=mrCancel;
|
Result:=mrCancel;
|
||||||
if not LazarusIDE.BeginCodeTools then exit(mrCancel);
|
if not LazarusIDE.BeginCodeTools then exit(mrCancel);
|
||||||
@ -850,6 +851,13 @@ begin
|
|||||||
CloseUnitComponent(AUnitInfo, [cfCloseDependencies]);
|
CloseUnitComponent(AUnitInfo, [cfCloseDependencies]);
|
||||||
SaveEditorFile(AUnitInfo.Filename,[sfProjectSaving, sfSkipReferences]);
|
SaveEditorFile(AUnitInfo.Filename,[sfProjectSaving, sfSkipReferences]);
|
||||||
SaveEditorFile(Code.Filename,[sfProjectSaving, sfSkipReferences]);
|
SaveEditorFile(Code.Filename,[sfProjectSaving, sfSkipReferences]);
|
||||||
|
|
||||||
|
PageIdx:=AUnitInfo.EditorInfo[0].PageIndex;
|
||||||
|
WinID:=AUnitInfo.EditorInfo[0].WindowID;
|
||||||
|
|
||||||
|
OpenEditorFile(Code.Filename,PageIdx,WinID,AUnitInfo.EditorInfo[0],
|
||||||
|
[],true);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user