diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-19 20:15:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-19 20:15:08 +0300 |
commit | 887c0ce6c53bcd25472ae5de4124bf56dd0a66f8 (patch) | |
tree | 1da9092e1ca7df3879bce4ea7c52128d68e08e47 | |
parent | 6e130dcb9b63cfe411923010517e0b93b6f96159 (diff) |
related to #1102 - fixes lost Clist Modern skin
-rw-r--r-- | plugins/Dbx_mdbx/src/dbsettings.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbsettings.cpp b/plugins/Dbx_mdbx/src/dbsettings.cpp index 1021c3d045..567f02b89e 100644 --- a/plugins/Dbx_mdbx/src/dbsettings.cpp +++ b/plugins/Dbx_mdbx/src/dbsettings.cpp @@ -384,14 +384,19 @@ STDMETHODIMP_(BOOL) CDbxMDBX::EnumContactSettings(MCONTACT hContact, DBSETTINGEN txn_ptr_ro txn(m_txn);
cursor_ptr_ro cursor(m_curSettings);
+ LIST<char> arKeys(100);
MDBX_val key = { &keyVal, sizeof(keyVal) }, data;
for (int res = mdbx_cursor_get(cursor, &key, &data, MDBX_SET_RANGE); res == MDBX_SUCCESS; res = mdbx_cursor_get(cursor, &key, &data, MDBX_NEXT)) {
const DBSettingKey *pKey = (const DBSettingKey*)key.iov_base;
if (pKey->hContact != hContact || pKey->dwModuleId != keyVal.dwModuleId)
break;
- result = pfnEnumProc(pKey->szSettingName, param);
+
+ arKeys.insert((char*)pKey->szSettingName);
}
+ for (int i=0; i < arKeys.getCount(); i++)
+ result = pfnEnumProc(arKeys[i], param);
+
return result;
}
|