MG: fixed clicking on message view on same selection

git-svn-id: trunk@3505 -
This commit is contained in:
lazarus 2002-10-14 07:59:58 +00:00
parent 70db5f4b81
commit 014b6325ec

View File

@ -175,17 +175,15 @@ var
Temp : Integer; //this temporarily holds the line # of the selection
begin
if (MessageView.Items.Count > 0) and (MessageView.SelCount > 0) then
Begin
Temp := GetSelectedLineIndex;
if Temp <> LastSelectedIndex then
Begin
LastSelectedIndex := Temp;
If Assigned(OnSelectionChanged) then
OnSelectionChanged(self);
end;
end;
Begin
Temp := GetSelectedLineIndex;
if Temp <> LastSelectedIndex then
Begin
LastSelectedIndex := Temp;
end;
If Assigned(OnSelectionChanged) then
OnSelectionChanged(self);
end;
end;
initialization