mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-18 01:28:49 +02:00
Cocoa: fix the crash when set TComboBox.DropDown with csDropDownList
This commit is contained in:
parent
e7c8818403
commit
7124597b46
@ -1987,7 +1987,8 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
if not ADroppedDown then exit;
|
if not ADroppedDown then exit;
|
||||||
comboBox:= TCocoaComboBox(ACustomComboBox.Handle);
|
comboBox:= TCocoaComboBox(ACustomComboBox.Handle);
|
||||||
comboBox.cell.performSelector_withObject_afterDelay( ObjCSelector('moveDown:'), nil, 0 );
|
if comboBox.cell.respondsToSelector(ObjCSelector('moveDown:')) then
|
||||||
|
comboBox.cell.performSelector_withObject_afterDelay( ObjCSelector('moveDown:'), nil, 0 );
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user