URL: string;
ATitle: Boolean;
+ threadItem : TThreadItem;
+ board : TBoard;
+
//wkInt: Integer;
wkIntSt: Integer;
wkIntTo: Integer;
ATitle := ActiveFileName <> PathRec.FKey;
- if (FActiveContent <> nil) and (FActiveContent is TThreadItem) then begin
+ threadItem := BBSsFindThreadFromURL( URL );
+ if threadItem = nil then begin
+ board := BBSsFindBoardFromBBSID( PathRec.FBBS );
+ threadItem := board.Find( PathRec.FKey + '.dat' );
+ end;
+
+ if threadItem <> nil then begin
//HintData := GetThreadText(PathRec.FBBS, PathRec.FKey, wkIntSt, wkIntTo, ATitle, PathRec.FFirst);
FHint.PopupType := gptThread;
- SetResPopupText( TThreadItem( FActiveContent ), wkIntSt, wkIntTo, ATitle, PathRec.FFirst );
+ SetResPopupText( threadItem, wkIntSt, wkIntTo, ATitle, PathRec.FFirst );
end;
end;
end;