diff --git a/ideintf/componenttreeview.pas b/ideintf/componenttreeview.pas index 7d84202c6c..6d0327d99b 100644 --- a/ideintf/componenttreeview.pas +++ b/ideintf/componenttreeview.pas @@ -254,7 +254,7 @@ begin inherited Create(TheOwner); DragMode := dmAutomatic; FComponentList:=TBackupComponentList.Create; - Options:=Options+[tvoAllowMultiselect,tvoAutoItemHeight,tvoKeepCollapsedNodes]; + Options := Options + [tvoAllowMultiselect, tvoAutoItemHeight, tvoKeepCollapsedNodes, tvoReadOnly]; FImageList := TImageList.Create(nil); FImageList.AddLazarusResource('oi_form'); FImageList.AddLazarusResource('oi_comp');