From 16ef13bd182bd24b24038edb9c2b1733f9039267 Mon Sep 17 00:00:00 2001 From: zueuk Date: Wed, 8 Oct 2008 02:15:19 +0000 Subject: [PATCH] *** empty log message *** --- 2.10/Source/Main.pas | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;