IDE: Compiling aborted, if missing events not removed or ignored + fixed undefined out parameter.

git-svn-id: branches/fixes_1_6@54101 -
This commit is contained in:
michl 2017-02-06 10:44:56 +00:00
parent 383134bee7
commit 270d121929

View File

@ -279,6 +279,7 @@ var
s: String;
MsgResult: TModalResult;
begin
ComponentModified:=false;
ListOfPInstancePropInfo:=nil;
try
// find all dangling events
@ -322,14 +323,14 @@ begin
Format(lisTheFollowingMethodsUsedByAreNotInTheSourceRemoveTh, [DbgSName(
RootComponent), LineEnding, PascalBuffer.Filename, LineEnding+LineEnding, s, LineEnding])
,mtConfirmation,
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrCancel]);
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrAbort]);
if MsgResult=mrYes then begin
ClearDanglingEvents(ListOfPInstancePropInfo);
ComponentModified:=true;
end else if MsgResult=mrIgnore then
exit(mrOk)
else
exit(mrCancel);
exit(mrAbort);
finally
FreeListOfPInstancePropInfo(ListOfPInstancePropInfo);
end;