LCL: fixed bug where OnSelectionChanged() isn't called in some circumstances.issue #26714

git-svn-id: trunk@46208 -
This commit is contained in:
zeljko 2014-09-13 14:36:46 +00:00
parent 60fe9db3e4
commit 0e6d1e27a5

View File

@ -409,6 +409,9 @@ begin
end else end else
begin begin
FItemIndex := Value; FItemIndex := Value;
// maybe handle was recreated. issue #26714
FLastClickedItemIndex := -1;
// trigger event to be delphi compat, even if handle isn't allocated. // trigger event to be delphi compat, even if handle isn't allocated.
// issue #15989 // issue #15989
if (Value <> OldItemIndex) and not FCreatingWnd then if (Value <> OldItemIndex) and not FCreatingWnd then