mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:59:13 +02:00
IDE: Compiling aborted, if missing events not removed or ignored + fixed undefined out parameter.
git-svn-id: trunk@54100 -
This commit is contained in:
parent
44244449f8
commit
6b1e076b8b
@ -280,6 +280,7 @@ var
|
|||||||
s: String;
|
s: String;
|
||||||
MsgResult: TModalResult;
|
MsgResult: TModalResult;
|
||||||
begin
|
begin
|
||||||
|
ComponentModified:=false;
|
||||||
ListOfPInstancePropInfo:=nil;
|
ListOfPInstancePropInfo:=nil;
|
||||||
try
|
try
|
||||||
// find all dangling events
|
// find all dangling events
|
||||||
@ -323,14 +324,14 @@ begin
|
|||||||
Format(lisTheFollowingMethodsUsedByAreNotInTheSourceRemoveTh, [DbgSName(
|
Format(lisTheFollowingMethodsUsedByAreNotInTheSourceRemoveTh, [DbgSName(
|
||||||
RootComponent), LineEnding, PascalBuffer.Filename, LineEnding+LineEnding, s, LineEnding])
|
RootComponent), LineEnding, PascalBuffer.Filename, LineEnding+LineEnding, s, LineEnding])
|
||||||
,mtConfirmation,
|
,mtConfirmation,
|
||||||
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrCancel]);
|
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrAbort]);
|
||||||
if MsgResult=mrYes then begin
|
if MsgResult=mrYes then begin
|
||||||
ClearDanglingEvents(ListOfPInstancePropInfo);
|
ClearDanglingEvents(ListOfPInstancePropInfo);
|
||||||
ComponentModified:=true;
|
ComponentModified:=true;
|
||||||
end else if MsgResult=mrIgnore then
|
end else if MsgResult=mrIgnore then
|
||||||
exit(mrOk)
|
exit(mrOk)
|
||||||
else
|
else
|
||||||
exit(mrCancel);
|
exit(mrAbort);
|
||||||
finally
|
finally
|
||||||
FreeListOfPInstancePropInfo(ListOfPInstancePropInfo);
|
FreeListOfPInstancePropInfo(ListOfPInstancePropInfo);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user