summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-03 19:32:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-03 19:32:13 +0300
commit7a81e01aeec30c64bd4b5487fe876b5ed019b532 (patch)
treede0223c59569673bd3e480741b8bf82d0c9aea35 /src
parentadddadb39220a5b135d9235140e3b63ffa374f7d (diff)
fixes #2090 (one can set a logger for a contact manually via SRMsg/Logger setting for this contact: hpp, ieview)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/srmm_log.cpp b/src/mir_app/src/srmm_log.cpp
index 27bf946237..f0ac1b2401 100644
--- a/src/mir_app/src/srmm_log.cpp
+++ b/src/mir_app/src/srmm_log.cpp
@@ -66,7 +66,9 @@ MIR_APP_DLL(void) UnregisterSrmmLog(HANDLE pLogger)
CSrmmLogWindow* Srmm_GetLogWindow(CMsgDialog *pDlg)
{
if (!pDlg->isChat() || g_bEnableCustomLogs) {
- ptrA szCurr(db_get_sa(0, "SRMM", "Logger", "built-in"));
+ ptrA szCurr(db_get_sa(pDlg->m_hContact, "SRMsg", "Logger"));
+ if (!szCurr)
+ szCurr = db_get_sa(0, "SRMM", "Logger", "built-in");
for (auto &it : g_arLogClasses)
if (!mir_strcmp(szCurr, it->szShortName))