summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/EmptyHistoryForm.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryPlusPlus/EmptyHistoryForm.pas')
-rw-r--r--plugins/HistoryPlusPlus/EmptyHistoryForm.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/HistoryPlusPlus/EmptyHistoryForm.pas b/plugins/HistoryPlusPlus/EmptyHistoryForm.pas
index f1faa55e6c..33fe30105b 100644
--- a/plugins/HistoryPlusPlus/EmptyHistoryForm.pas
+++ b/plugins/HistoryPlusPlus/EmptyHistoryForm.pas
@@ -257,7 +257,7 @@ begin
SetSafetyMode(False);
while hDBEvent <> 0 do
begin
- prevhDbEvent := db_event_prev(hDBEvent);
+ prevhDbEvent := db_event_prev(hContact,hDBEvent);
if db_event_delete(hContact,hDBEvent) = 0 then
hDBEvent := prevhDbEvent
else