summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-27 19:48:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-27 19:48:43 +0300
commit62f0837b78032af98cbb470a75ddb72832f95639 (patch)
tree6e4e2c2262468dcb37641b76cf854016fcb6a582 /plugins/HistoryPlusPlus
parent5b44aca766e6bee4eadccb1903dcea8408f67706 (diff)
fixes #4500 (History++: если протокол неизвестен, то не следует считать его ICQ)
Diffstat (limited to 'plugins/HistoryPlusPlus')
-rw-r--r--plugins/HistoryPlusPlus/GlobalSearch.pas4
-rw-r--r--plugins/HistoryPlusPlus/HistoryForm.pas2
-rw-r--r--plugins/HistoryPlusPlus/hpp_externalgrid.pas2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HistoryPlusPlus/GlobalSearch.pas b/plugins/HistoryPlusPlus/GlobalSearch.pas
index ffc955e3b3..299b936790 100644
--- a/plugins/HistoryPlusPlus/GlobalSearch.pas
+++ b/plugins/HistoryPlusPlus/GlobalSearch.pas
@@ -573,8 +573,8 @@ var
begin
// wParam - hContact, lParam - 0
CurContact := M.wParam;
- if CurContact = 0 then
- CurProto := 'ICQ'
+ if CurContact <> 0 then
+ CurProto := ''
else
CurProto := Proto_GetBaseAccountName(CurContact);
laProgress.Caption := Format(TranslateW('Searching "%s"...'),
diff --git a/plugins/HistoryPlusPlus/HistoryForm.pas b/plugins/HistoryPlusPlus/HistoryForm.pas
index b61f0f0827..bc752cfbc6 100644
--- a/plugins/HistoryPlusPlus/HistoryForm.pas
+++ b/plugins/HistoryPlusPlus/HistoryForm.pas
@@ -3007,7 +3007,7 @@ begin
if FhContact = 0 then
begin
FhSubContact := 0;
- FProtocol := 'ICQ';
+ FProtocol := '';
FSubProtocol := FProtocol;
end
else
diff --git a/plugins/HistoryPlusPlus/hpp_externalgrid.pas b/plugins/HistoryPlusPlus/hpp_externalgrid.pas
index 5651b3d57e..70828902e0 100644
--- a/plugins/HistoryPlusPlus/hpp_externalgrid.pas
+++ b/plugins/HistoryPlusPlus/hpp_externalgrid.pas
@@ -555,7 +555,7 @@ begin
begin
if Items[Index].hContact = 0 then
begin
- Grid.Protocol := 'ICQ';
+ Grid.Protocol := '';
FSubProtocol := Grid.Protocol;
end
else