diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-30 18:59:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-30 18:59:38 +0000 |
commit | 10bc9e42dfba6ed8be41199243d688c2e367dc0d (patch) | |
tree | 891aca91eeb2feddb6c76498c4eb880689360fe6 /plugins/QuickSearch/sr_global.pas | |
parent | 5dac5be47f2d9af8cbceead6511ff4c0fc40bab5 (diff) |
MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced with pcli->* members
git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickSearch/sr_global.pas')
-rw-r--r-- | plugins/QuickSearch/sr_global.pas | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/QuickSearch/sr_global.pas b/plugins/QuickSearch/sr_global.pas index b4e18a1b92..74c0a5e6ef 100644 --- a/plugins/QuickSearch/sr_global.pas +++ b/plugins/QuickSearch/sr_global.pas @@ -43,6 +43,7 @@ const //types QSTO_LASTEVENT = 1;
QSTO_METACONTACT = 2;
QSTO_EVENTCOUNT = 3;
+ QSTO_DISPLAYNAME = 4;
const
COL_ON = $0001; // Show column
@@ -395,12 +396,8 @@ begin StrDupW(title,TranslateW('Nickname'));
width :=76;
flags :=COL_ON+COL_FILTER;
- setting_type :=QST_SERVICE;
- StrDup(service.service,MS_CLIST_GETCONTACTDISPLAYNAME);
- service.flags :=ACF_TYPE_UNICODE;
- service.w_flags:=ACF_TYPE_PARAM;
- service.l_flags:=ACF_TYPE_NUMBER;
- StrDupW(pWideChar(service.lparam),'2'); // 0 for ANSI
+ setting_type :=QST_OTHER;
+ other :=QSTO_DISPLAYNAME;
end;
inc(i);
@@ -740,6 +737,13 @@ begin StrCopy(p,so__title); title:=GetUnicode(buf);
StrCopy(p,so__width); width:=GetWord(buf,20);
StrCopy(p,so__flags); flags:=GetWord(buf,COL_ON) and not COL_REFRESH;
+
+ if (title='Nickname') then begin
+ setting_type:=QST_OTHER;
+ other:=QSTO_DISPLAYNAME;
+ continue;
+ end;
+
case setting_type of
QST_SETTING: begin
StrCopy(p,so__datatype); datatype:=GetWord(buf,0);
|