diff --git a/2.10/Source/Main.pas b/2.10/Source/Main.pas index a500658..1e11a29 100644 --- a/2.10/Source/Main.pas +++ b/2.10/Source/Main.pas @@ -2947,9 +2947,8 @@ var s: string; Palette: TcolorMap; begin - if (Change = ctState) and (Item.Selected = true) and (Item.Index <> mainCPindex) then - //(ListView.SelCount <> 0) and - //(Trim(ListView.Selected.Caption) <> Trim(maincp.name)) then + if ((ListView.SelCount <> 0) and (Trim(ListView.Selected.Caption) <> Trim(mainCP.name))) or + ((Change = ctState) and (Item.Selected = true) and (Item.Index <> mainCPindex)) then begin assert(ListView.Selected = Item); mainCPindex := Item.Index;