mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 07:55:59 +02:00
LCL: Improve TDBDateEdit interference with other Data Aware Controls. Issue #27702, patch from LacaK.
git-svn-id: trunk@61681 -
This commit is contained in:
parent
cc0a2ae11b
commit
0d80f7f8e9
@ -12,10 +12,8 @@
|
||||
|
||||
procedure TDBDateEdit.DataChange(Sender: TObject);
|
||||
begin
|
||||
if FDataLink.Field <> nil then begin
|
||||
Self.Date := FDataLink.Field.AsDateTime;
|
||||
if Focused and AutoSelect then SelectAll;
|
||||
end
|
||||
if FDataLink.Field <> nil then
|
||||
Self.Date := FDataLink.Field.AsDateTime
|
||||
else
|
||||
Text := '';
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user