From 08ed3a95b4f42079eea4d930af81257564b85b97 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 18 Jan 2014 12:49:36 +0000 Subject: fix for editing log path in StdChat & Scriver git-svn-id: http://svn.miranda-ng.org/main/trunk@7717 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/options.cpp | 2 +- plugins/TabSRMM/src/chat/chat.h | 1 - plugins/TabSRMM/src/chat/manager.cpp | 8 -------- plugins/TabSRMM/src/chat/options.cpp | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins') diff --git a/plugins/Scriver/src/chat/options.cpp b/plugins/Scriver/src/chat/options.cpp index 00b1593e80..0ba390c71b 100644 --- a/plugins/Scriver/src/chat/options.cpp +++ b/plugins/Scriver/src/chat/options.cpp @@ -539,13 +539,13 @@ INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lPa TCHAR *pszText1 = (TCHAR *)malloc(iLen*sizeof(TCHAR)+2); GetDlgItemText(hwndDlg, IDC_CHAT_LOGDIRECTORY, pszText1, iLen + 1); db_set_ts(NULL, "Chat", "LogDirectory", pszText1); - PathToAbsoluteT(pszText1, g_Settings.pszLogDir); free(pszText1); } else { lstrcpyn(g_Settings.pszLogDir, DEFLOGFILENAME, MAX_PATH); db_unset(NULL, "Chat", "LogDirectory"); } + pci->SM_InvalidateLogDirectories(); iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_CHAT_LOGTIMESTAMP)); if (iLen > 0) { diff --git a/plugins/TabSRMM/src/chat/chat.h b/plugins/TabSRMM/src/chat/chat.h index e5d82d1272..211a11e60c 100644 --- a/plugins/TabSRMM/src/chat/chat.h +++ b/plugins/TabSRMM/src/chat/chat.h @@ -155,7 +155,6 @@ SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO* cu void SM_RemoveContainer(TContainerData *pContainer); BOOL SM_ReconfigureFilters(); -BOOL SM_InvalidateLogDirectories(); //clist.c diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp index b14d53dbbf..d58f487c7d 100644 --- a/plugins/TabSRMM/src/chat/manager.cpp +++ b/plugins/TabSRMM/src/chat/manager.cpp @@ -44,14 +44,6 @@ BOOL SM_ReconfigureFilters() return TRUE; } -BOOL SM_InvalidateLogDirectories() -{ - for (SESSION_INFO *si = pci->wndList; si; si = si->next) - si->pszLogFileName[0] = si->pszLogFileName[1] = 0; - - return TRUE; -} - SESSION_INFO* SM_FindSessionByHWND(HWND hWnd) { for (SESSION_INFO *si = pci->wndList; si; si = si->next) diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp index 5b9a0dda05..6d5e71af6b 100644 --- a/plugins/TabSRMM/src/chat/options.cpp +++ b/plugins/TabSRMM/src/chat/options.cpp @@ -932,7 +932,7 @@ INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM db_unset(NULL, "Chat", "LogDirectory"); db_set_b(0, "Chat", "LoggingEnabled", 0); } - SM_InvalidateLogDirectories(); + pci->SM_InvalidateLogDirectories(); iLen = SendDlgItemMessage(hwndDlg, IDC_CHAT_SPIN4, UDM_GETPOS, 0, 0); db_set_w(NULL, "Chat", "LoggingLimit", (WORD)iLen); -- cgit v1.2.3