CalendarPopup: Immediately hide the form (before closing) on deactivate (Issue #0020647)

git-svn-id: trunk@47181 -
This commit is contained in:
bart 2014-12-12 12:28:29 +00:00
parent add97f7a02
commit 42c4bdafbf

View File

@ -115,6 +115,9 @@ end;
procedure TCalendarPopupForm.FormDeactivate(Sender: TObject);
begin
//DebugLn(['TCalendarPopupForm.FormDeactivate ',DbgSName(GetCaptureControl)]);
//Immediately hide the form, otherwise it stays visible while e.g. user is draging
//another form (Issue #0020647)
Hide;
if (not FClosed) then
Close;
end;