You've already forked lazarus-ccr
tvplanit: Fix index error when default category in ical event import is empty.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8383 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -250,7 +250,7 @@ begin
|
||||
begin
|
||||
SizePriority := 0;
|
||||
Width := 160;
|
||||
Title.Caption := 'Category';
|
||||
Title.Caption := 'Category to be applied';
|
||||
ButtonStyle := cbsPickList;
|
||||
L := TStringList.Create;
|
||||
try
|
||||
@ -267,7 +267,10 @@ begin
|
||||
event := TVpICalEvent(FItems[i]);
|
||||
cat := FDatastore.FindBestEventCategory(event.Categories);
|
||||
if cat = '' then cat := FDefaultCategory;
|
||||
event.PickedCategory := Grid.Columns[2].PickList.IndexOf(cat)
|
||||
if cat <> '' then
|
||||
event.PickedCategory := Grid.Columns[2].PickList.IndexOf(cat)
|
||||
else
|
||||
event.PickedCategory := 0;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user