diff --git a/designer/objectinspector.pp b/designer/objectinspector.pp index f8772bfd04..268eea9f6a 100644 --- a/designer/objectinspector.pp +++ b/designer/objectinspector.pp @@ -951,7 +951,6 @@ begin if Button=mbLeft then begin if not WasDragging then begin Index:=MouseToIndex(Y,false); - ItemIndex:=Index; if (Index>=0) and (Index=IconX) and (X<=IconX+FIndent) then begin @@ -962,6 +961,8 @@ begin else ExpandRow(Index); end; + end else begin + ItemIndex:=Index; end; end; end;