mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 16:39:36 +01:00
LazControls: check filteredtreeview and listbox, fix AV, from BBaz, issue #27137
git-svn-id: trunk@47120 -
This commit is contained in:
parent
539bec103f
commit
7ab6918cc8
@ -277,6 +277,8 @@ function TListFilterEdit.ReturnKeyHandled: Boolean;
|
||||
var
|
||||
Key: Char;
|
||||
begin
|
||||
if fFilteredListbox = nil then
|
||||
exit(false);
|
||||
Key:=Char(VK_RETURN);
|
||||
Result:=Assigned(fFilteredListbox.OnKeyPress);
|
||||
if Result then
|
||||
|
||||
@ -622,6 +622,8 @@ function TTreeFilterEdit.ReturnKeyHandled: Boolean;
|
||||
var
|
||||
Key: Char;
|
||||
begin
|
||||
if fFilteredTreeview = nil then
|
||||
exit(false);
|
||||
Key:=Char(VK_RETURN);
|
||||
Result:=Assigned(fFilteredTreeview.OnKeyPress);
|
||||
if Result then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user