diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-06 18:07:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-06 18:07:12 +0300 |
commit | 53ac5111e633d4701ce7d1e5f967609e139ae37f (patch) | |
tree | a01a67eb61e716b705fb6915ee0a462b6abf46a1 /plugins/Clist_modern/src/modern_clcitems.cpp | |
parent | 065b40aaa42324348d3f898120c6e344a1abd12f (diff) |
fixes #2198 (Clist_modern: Окно "Настройка режимов вида" забывает про закреплённые контакты)
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index 1bb519537f..2cbf993321 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -37,7 +37,7 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup) cont->iSubNumber = 0;
mir_free(cont->subcontacts);
- cont->subcontacts = (ClcContact *)mir_calloc(sizeof(ClcContact)*subcount);
+ cont->subcontacts = (ClcContact *)mir_calloc(sizeof(ClcContact) * subcount);
cont->iSubAllocated = subcount;
int i = 0;
int bHideOffline = g_plugin.getByte("HideOffline", SETTING_HIDEOFFLINE_DEFAULT);
@@ -54,7 +54,7 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup) if (!showOfflineHereGroup && bHideOffline && !pdnce->m_bNoHiddenOffline && wStatus == ID_STATUS_OFFLINE)
continue;
- ClcContact& p = cont->subcontacts[i];
+ ClcContact &p = cont->subcontacts[i];
p.hContact = pdnce->hContact;
p.pce = pdnce;
@@ -310,7 +310,7 @@ int GetNewSelection(ClcGroup *group, int selection, int direction) ClcContact* cliCreateClcContact()
{
- ClcContact *contact = (ClcContact*)mir_calloc(sizeof(ClcContact));
+ ClcContact *contact = (ClcContact *)mir_calloc(sizeof(ClcContact));
memset(contact->iExtraImage, 0xFF, sizeof(contact->iExtraImage));
return contact;
}
@@ -373,7 +373,7 @@ int cliGetGroupContentsCount(ClcGroup *group, int visibleOnly) group->scanIndex++;
continue;
}
-
+
ClcContact *cc = group->cl[group->scanIndex];
if (cc->type == CLCIT_GROUP && (!(visibleOnly & 0x01) || cc->group->expanded)) {
group = cc->group;
@@ -414,7 +414,7 @@ int CLVM_GetContactHiddenStatus(MCONTACT hContact, char *szProto, ClcData *dat) wchar_t *lowered_search = CharLowerW(NEWWSTR_ALLOCA(dat->szQuickSearch));
searchResult = wcsstr(lowered_name, lowered_search) ? 0 : 1;
}
-
+
if (pdnce && g_CluiData.bFilterEffective && dat != nullptr && !dat->bForceInDialog) {
if (szProto == nullptr)
szProto = Proto_GetBaseAccountName(hContact);
|