mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:59:16 +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);
|
procedure TDBDateEdit.DataChange(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if FDataLink.Field <> nil then begin
|
if FDataLink.Field <> nil then
|
||||||
Self.Date := FDataLink.Field.AsDateTime;
|
Self.Date := FDataLink.Field.AsDateTime
|
||||||
if Focused and AutoSelect then SelectAll;
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
Text := '';
|
Text := '';
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user