Avoid main window blinking into view when Cancel is pressed in the session manager. Happens because Application.Run() sets the main form to Visible before the message pump starts and gets to processing WM_QUIT (or whatever).

This commit is contained in:
rosenfield.albert
2009-03-12 20:23:41 +00:00
parent 4ae5b43c05
commit 8f74735c52

View File

@ -1587,7 +1587,7 @@ begin
FreeAndNil(ConnForm);
if dlgResult = mrCancel then begin
Close;
Exit;
Halt;
end;
end;