ギコナビ
修订版 | 6f58ca257654b388576b2959499c3d514dc0f3c4 (tree) |
---|---|
时间 | 2007-06-10 23:20:06 |
作者 | h677 <h677> |
Commiter | h677 |
他のスレッドへのリンクをポップアップ中に、現在スレッドのダウンロードなどを
実行するとポップアップしているスレッドをダウンロードするなどの不具合の解消
@@ -725,7 +725,7 @@ type | ||
725 | 725 | property ActiveBBS : TBBS read FActiveBBS write FActiveBBS; |
726 | 726 | property WorkCount: Integer read FWorkCount write FWorkCount; |
727 | 727 | procedure SetContent(inThread: TBrowserRecord); |
728 | - function GetActiveContent: TThreadItem; | |
728 | + function GetActiveContent(popup :Boolean = false): TThreadItem; | |
729 | 729 | function GetActiveList: TObject; |
730 | 730 | |
731 | 731 | procedure SetListViewType(AViewType: TGikoViewType); overload; |
@@ -2853,12 +2853,13 @@ begin | ||
2853 | 2853 | end; |
2854 | 2854 | end; |
2855 | 2855 | |
2856 | -function TGikoForm.GetActiveContent: TThreadItem; | |
2856 | +function TGikoForm.GetActiveContent(popup :Boolean = false): TThreadItem; | |
2857 | 2857 | begin |
2858 | 2858 | try |
2859 | 2859 | if FActiveContent <> nil then begin |
2860 | 2860 | Result := FActiveContent.Thread; |
2861 | - if (FResPopupBrowser <> nil) and (FResPopupBrowser.CurrentBrowser.Visible = True) then | |
2861 | + if (popup) and | |
2862 | + (FResPopupBrowser <> nil) and (FResPopupBrowser.CurrentBrowser.Visible = True) then | |
2862 | 2863 | if (FResPopupBrowser.CurrentBrowser.Thread <> nil) then begin |
2863 | 2864 | Result := FResPopupBrowser.CurrentBrowser.Thread; |
2864 | 2865 | end; |
@@ -6178,7 +6179,7 @@ var | ||
6178 | 6179 | boardPlugIn : TBoardPlugIn; |
6179 | 6180 | begin |
6180 | 6181 | if Number = 0 then Exit; |
6181 | - ThreadItem := GetActiveContent; | |
6182 | + ThreadItem := GetActiveContent(True); | |
6182 | 6183 | |
6183 | 6184 | if ThreadItem <> nil then begin |
6184 | 6185 | //if ThreadItem.IsBoardPlugInAvailable then begin |
@@ -7047,7 +7048,7 @@ var | ||
7047 | 7048 | ReadList : TStringList; |
7048 | 7049 | wordCount : TWordCount; |
7049 | 7050 | begin |
7050 | - ThreadItem := GetActiveContent; | |
7051 | + ThreadItem := GetActiveContent(True); | |
7051 | 7052 | ReadList := TStringList.Create; |
7052 | 7053 | wordCount := TWordCount.Create; |
7053 | 7054 | try |
@@ -7081,7 +7082,7 @@ var | ||
7081 | 7082 | begin |
7082 | 7083 | No := KokoPopupMenu.Tag; |
7083 | 7084 | if No = 0 then Exit; |
7084 | - ThreadItem := GetActiveContent; | |
7085 | + ThreadItem := GetActiveContent(True); | |
7085 | 7086 | if ThreadItem = nil then Exit; |
7086 | 7087 | body := TStringList.Create; |
7087 | 7088 | try |
@@ -2336,7 +2336,7 @@ var | ||
2336 | 2336 | begin |
2337 | 2337 | No := GikoForm.KokoPopupMenu.Tag; |
2338 | 2338 | if No = 0 then Exit; |
2339 | - ThreadItem := GikoForm.GetActiveContent; | |
2339 | + ThreadItem := GikoForm.GetActiveContent(True); | |
2340 | 2340 | if ThreadItem = nil then Exit; |
2341 | 2341 | ThreadItem.Kokomade := No; |
2342 | 2342 | GikoForm.ActiveContent.Thread.ScrollTop := |
@@ -2353,7 +2353,7 @@ procedure TGikoDM.ZenbuActionExecute(Sender: TObject); | ||
2353 | 2353 | var |
2354 | 2354 | ThreadItem: TThreadItem; |
2355 | 2355 | begin |
2356 | - ThreadItem := GikoForm.GetActiveContent; | |
2356 | + ThreadItem := GikoForm.GetActiveContent(True); | |
2357 | 2357 | if ThreadItem = nil then Exit; |
2358 | 2358 | ThreadItem.Kokomade := -1; |
2359 | 2359 | GikoForm.ActiveContent.Thread.ScrollTop := |
@@ -2374,7 +2374,7 @@ var | ||
2374 | 2374 | begin |
2375 | 2375 | Number := GikoForm.KokoPopupMenu.Tag; |
2376 | 2376 | if Number = 0 then Exit; |
2377 | - Item := GikoForm.GetActiveContent; | |
2377 | + Item := GikoForm.GetActiveContent(True); | |
2378 | 2378 | if Item = nil then Exit; |
2379 | 2379 | |
2380 | 2380 | Editor := TEditorForm.Create(GikoForm); |
@@ -2404,7 +2404,7 @@ var | ||
2404 | 2404 | begin |
2405 | 2405 | No := GikoForm.KokoPopupMenu.Tag; |
2406 | 2406 | if No = 0 then Exit; |
2407 | - ThreadItem := GikoForm.GetActiveContent; | |
2407 | + ThreadItem := GikoForm.GetActiveContent(True); | |
2408 | 2408 | if ThreadItem = nil then Exit; |
2409 | 2409 | count := GikoSys.GetSameIDResCount(No, GikoForm.ActiveContent.Thread); |
2410 | 2410 | limited := LIMIT; |
@@ -2446,7 +2446,7 @@ var | ||
2446 | 2446 | begin |
2447 | 2447 | IndividualForm := TIndividualAbonForm.Create(GikoForm); |
2448 | 2448 | try |
2449 | - ThreadItem := GikoForm.GetActiveContent; | |
2449 | + ThreadItem := GikoForm.GetActiveContent(True); | |
2450 | 2450 | ThreadItem.ScrollTop := |
2451 | 2451 | OleVariant(IHTMLDocument2(GikoForm.ActiveContent.Browser.Document)).Body.ScrollTop; |
2452 | 2452 | if (ThreadItem <> nil) and (ThreadItem.IsLogFile) then begin |
@@ -2494,7 +2494,7 @@ var | ||
2494 | 2494 | begin |
2495 | 2495 | IndividualForm := TIndividualAbonForm.Create(GikoForm); |
2496 | 2496 | try |
2497 | - ThreadItem := GikoForm.GetActiveContent; | |
2497 | + ThreadItem := GikoForm.GetActiveContent(True); | |
2498 | 2498 | ThreadItem.ScrollTop := |
2499 | 2499 | OleVariant(IHTMLDocument2(GikoForm.ActiveContent.Browser.Document)).Body.ScrollTop; |
2500 | 2500 | if (ThreadItem <> nil) and (ThreadItem.IsLogFile) then begin |