diff options
-rw-r--r-- | src/mir_app/src/contacts.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mir_app/src/contacts.cpp b/src/mir_app/src/contacts.cpp index 053b94490d..dc7af82b37 100644 --- a/src/mir_app/src/contacts.cpp +++ b/src/mir_app/src/contacts.cpp @@ -186,8 +186,9 @@ MIR_APP_DLL(wchar_t*) Contact_GetInfo(int type, MCONTACT hContact, const char *s case 0: // custom name
// make sure we aren't in CNF_DISPLAYNC mode
// don't get custom name for nullptr contact
- if (hContact != 0 && type == CNF_DISPLAY && (res = ProcessDatabaseValueDefault(hContact, "CList", "MyHandle")) != nullptr)
- return res;
+ if (type == CNF_DISPLAY)
+ if (res = ProcessDatabaseValueDefault(hContact, (hContact != 0) ? "CList" : szProto, "MyHandle"))
+ return res;
break;
case 1:
|