summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-27 18:17:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-27 18:17:29 +0000
commitd83bb1213828c8e217f0c1079443ef7d8cd8eab4 (patch)
treec8c3c6a1ebd73bff374d4d66fc28439cbf8afd0e
parent77cafc3eb6fd925d6c10e84bf950ed9efb4c709a (diff)
StcChat: "Show status changes" option disabled for a while
git-svn-id: http://svn.miranda-ng.org/main/trunk@7918 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/core/stdchat/src/options.cpp8
-rw-r--r--src/core/stdmsg/src/msgoptions.cpp5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/core/stdchat/src/options.cpp b/src/core/stdchat/src/options.cpp
index b2b637bf76..1006a9bcbb 100644
--- a/src/core/stdchat/src/options.cpp
+++ b/src/core/stdchat/src/options.cpp
@@ -52,8 +52,8 @@ static const struct branch_t branch1[] = {
{ LPGENT("Do not play sounds when the chat room is focused"), "SoundsFocus", 0, 0},
{ LPGENT("Do not pop up the window when joining a chat room"), "PopupOnJoin", 0,0},
{ LPGENT("Toggle the visible state when double clicking in the contact list"), "ToggleVisibility", 0,0},
- {LPGENT("Show contact statuses if protocol supports them"), "ShowContactStatus", 0,0},
- {LPGENT("Display contact status icon before user role icon"), "ContactStatusFirst", 0,0},
+ { LPGENT("Show contact statuses if protocol supports them"), "ShowContactStatus", 0, 0 },
+ { LPGENT("Display contact status icon before user role icon"), "ContactStatusFirst", 0, 0 },
};
static const struct branch_t branch2[] = {
@@ -174,10 +174,10 @@ static void FillBranch(HWND hwndTree, HTREEITEM hParent, const struct branch_t *
static void SaveBranch(HWND hwndTree, const struct branch_t *branch, HTREEITEM *hItemB, int nValues)
{
- TVITEM tvi;
int iState = 0;
- tvi.mask=TVIF_HANDLE|TVIF_STATE;
+ TVITEM tvi;
+ tvi.mask = TVIF_HANDLE | TVIF_STATE;
for (int i = 0; i < nValues; i++) {
tvi.hItem = hItemB[i];
TreeView_GetItem(hwndTree,&tvi);
diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp
index 98b4fc8520..7e6aee4da6 100644
--- a/src/core/stdmsg/src/msgoptions.cpp
+++ b/src/core/stdmsg/src/msgoptions.cpp
@@ -355,8 +355,11 @@ static INT_PTR CALLBACK DlgProcLogOptions(HWND hwndDlg, UINT msg, WPARAM wParam,
CheckDlgButton(hwndDlg, IDC_SHOWSECS, db_get_b(NULL, SRMMMOD, SRMSGSET_SHOWSECS, SRMSGDEFSET_SHOWSECS));
EnableWindow(GetDlgItem(hwndDlg, IDC_SHOWDATES), IsDlgButtonChecked(hwndDlg, IDC_SHOWTIMES));
CheckDlgButton(hwndDlg, IDC_SHOWDATES, db_get_b(NULL, SRMMMOD, SRMSGSET_SHOWDATE, SRMSGDEFSET_SHOWDATE));
- CheckDlgButton(hwndDlg, IDC_SHOWSTATUSCHANGES, db_get_b(NULL, SRMMMOD, SRMSGSET_SHOWSTATUSCH, SRMSGDEFSET_SHOWSTATUSCH));
CheckDlgButton(hwndDlg, IDC_SHOWFORMATTING, db_get_b(NULL, SRMMMOD, SRMSGSET_SHOWFORMAT, SRMSGDEFSET_SHOWFORMAT));
+
+ // CheckDlgButton(hwndDlg, IDC_SHOWSTATUSCHANGES, db_get_b(NULL, SRMMMOD, SRMSGSET_SHOWSTATUSCH, SRMSGDEFSET_SHOWSTATUSCH));
+ CheckDlgButton(hwndDlg, IDC_SHOWSTATUSCHANGES, FALSE);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_SHOWSTATUSCHANGES), FALSE);
return TRUE;
case WM_COMMAND: