if not RoundItem.BoolData then Continue;
if not Giko.GikoForm.LoginAction.Checked then Exit;
if RoundItem.RoundType = grtBoard then begin
- //Board := TBoard( RoundItem.Item );
- Board := BBSsFindBoardFromURL(RoundItem.URL);
+ Board := TBoard( RoundItem.Item );
+ //Board := BBSsFindBoardFromURL(RoundItem.URL);
if Board <> nil then begin
if not Board.IsThreadDatRead then
GikoSys.ReadSubjectFile(Board);
RoundItem := RoundList.Items[i, grtItem];
if not RoundItem.BoolData then Continue;
if not Giko.GikoForm.LoginAction.Checked then Exit;
- if RoundItem.RoundType = grtItem then begin
- //ThreadItem := TThreadItem( RoundItem.Item );
- ThreadItem := BBSsFindThreadFromURL(RoundItem.URL);
+ if RoundItem.RoundType = grtItem then begin
+ ThreadItem := TThreadItem( RoundItem.Item );
+ //ThreadItem := BBSsFindThreadFromURL(RoundItem.URL);
if ThreadItem <> nil then begin
// GikoForm.AddMessageList('debug2:' + IntToStr(i), nil);
GikoForm.DownloadContent(ThreadItem);
Exit;
if TObject(RoundListView.Selected.Data) is TRoundItem then begin
RoundItem := TRoundItem(RoundListView.Selected.Data);
- RoundList.Delete(RoundItem.URL,RoundItem.RoundType);
+ if( RoundItem.Item is TBoard ) then begin
+ TBoard(RoundItem.Item).Round := false;
+ end else if( RoundItem.Item is TThreadItem ) then begin
+ TThreadItem(RoundItem.Item).Round := false;
+ end;
+ //RoundList.Delete(RoundItem.URL,RoundItem.RoundType);
{
if RoundItem.RoundType = grtBoard then begin
//Board := TBoard( RoundItem.Item );