summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/hpp_searchthread.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-26 15:28:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-26 15:28:09 +0000
commit19cab1ca9696845a338a17c9bad3788aa4ec7bc2 (patch)
treee7e8712794e7e78136d7eb101fa876124916e2d6 /plugins/HistoryPlusPlus/hpp_searchthread.pas
parenta24244a8159143a07208a91a6314680856d45a9e (diff)
password protection removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@6988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus/hpp_searchthread.pas')
-rw-r--r--plugins/HistoryPlusPlus/hpp_searchthread.pas15
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/HistoryPlusPlus/hpp_searchthread.pas b/plugins/HistoryPlusPlus/hpp_searchthread.pas
index d3bd22d361..88637c039b 100644
--- a/plugins/HistoryPlusPlus/hpp_searchthread.pas
+++ b/plugins/HistoryPlusPlus/hpp_searchthread.pas
@@ -159,8 +159,7 @@ function SearchTextAllWords(const MessageText: String; SearchWords: array of Str
implementation
uses
- hpp_contacts, hpp_events, hpp_bookmarks, hpp_eventfilters,
- PassForm;
+ hpp_contacts, hpp_events, hpp_bookmarks, hpp_eventfilters;
function SearchTextExact(const MessageText: String; const SearchText: String): Boolean;
begin
@@ -256,11 +255,7 @@ begin
while hCont <> 0 do
begin
Inc(AllContacts);
- // I hope I haven't messed this up by
- // if yes, also fix the same in CalcMaxProgress
- if SearchProtectedContacts or (not SearchProtectedContacts and (not IsUserProtected(hCont)))
- then
- AddContact(hCont);
+ AddContact(hCont);
hCont := db_find_next(hCont);
end;
@@ -277,11 +272,7 @@ begin
hCont := db_find_first();
while hCont <> 0 do
begin
- // I hope I haven't messed this up by
- // if yes, also fix the same in Execute
- if SearchProtectedContacts or (not SearchProtectedContacts and (not IsUserProtected(hCont)))
- then
- MaxProgress := MaxProgress + GetItemsCount(hCont);
+ MaxProgress := MaxProgress + GetItemsCount(hCont);
hCont := db_find_next(hCont);
end;
// add sysem history