summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/HistoryForm.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-12 13:40:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-12 13:40:35 +0000
commit8d371aa2b1fa5a7bfe835dee9b60d1407b33047b (patch)
tree66de3db76891d5676ce504d84b844e7912caa144 /plugins/HistoryPlusPlus/HistoryForm.pas
parent19862a932141daf02cb0ab5cae0f1222315ff49d (diff)
db_event_next/db_event_prev: first parameter hContact added
git-svn-id: http://svn.miranda-ng.org/main/trunk@8576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus/HistoryForm.pas')
-rw-r--r--plugins/HistoryPlusPlus/HistoryForm.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HistoryPlusPlus/HistoryForm.pas b/plugins/HistoryPlusPlus/HistoryForm.pas
index 0ce99caf3d..3cec81369e 100644
--- a/plugins/HistoryPlusPlus/HistoryForm.pas
+++ b/plugins/HistoryPlusPlus/HistoryForm.pas
@@ -593,7 +593,7 @@ procedure THistoryFrm.LoadHistory(Sender: TObject);
ToRead := Max(0, HistoryLength - hppFirstLoadBlock - 1);
LineIdx := HistoryLength - 2;
repeat
- hDBEvent := db_event_prev(hDBEvent);
+ hDBEvent := db_event_prev(hContact,hDBEvent);
History[LineIdx] := NotZero(hDBEvent);
{ if NeedhDBEvent = hDbEvent then begin
Result := HistoryLength-LineIdx-1;
@@ -1490,7 +1490,7 @@ begin
begin
if History[ridx] <> 0 then
break;
- hDBEvent := db_event_prev(hDBEvent);
+ hDBEvent := db_event_prev(hContact,hDBEvent);
History[ridx] := NotZero(hDBEvent);
end;
end
@@ -1508,7 +1508,7 @@ begin
begin
if History[ridx] <> 0 then
break;
- hDBEvent := db_event_next(hDBEvent);
+ hDBEvent := db_event_next(hContact,hDBEvent);
History[ridx] := NotZero(hDBEvent);
end;
end;
@@ -2050,7 +2050,7 @@ begin
begin
if Sessions[idx].hDBEventLast = hDBEvent then
begin
- hDBEvent := db_event_prev(hDBEvent);
+ hDBEvent := db_event_prev(hContact,hDBEvent);
if hDBEvent <> 0 then
begin
Sessions[idx].hDBEventLast := hDBEvent;