From aeb730d93c2a3a68fc0644b905198f30e45d150a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jun 2022 19:57:46 +0300 Subject: =?UTF-8?q?fixes=20#3099=20(StopSpam:=20=D1=83=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=D0=BD=D0=B2=D0=B5=D1=80=D1=81=D0=BD=D1=83?= =?UTF-8?q?=D1=8E=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D1=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/StopSpamPlus/res/stopspam.rc | 13 ++++++++++++- plugins/StopSpamPlus/src/options.cpp | 4 ++-- plugins/StopSpamPlus/src/resource.h | 4 ++-- plugins/StopSpamPlus/src/version.h | 2 +- 4 files changed, 17 insertions(+), 6 deletions(-) (limited to 'plugins/StopSpamPlus') diff --git a/plugins/StopSpamPlus/res/stopspam.rc b/plugins/StopSpamPlus/res/stopspam.rc index 7ee8a32c79..2f4b414983 100644 --- a/plugins/StopSpamPlus/res/stopspam.rc +++ b/plugins/StopSpamPlus/res/stopspam.rc @@ -48,7 +48,7 @@ STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD EXSTYLE WS_EX_CONTROLPARENT FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN - LTEXT "Disable protection for following accounts:",IDC_STATIC,24,7,216,11 + LTEXT "Enable protection for following accounts:",IDC_STATIC,24,7,216,11 CONTROL "",IDC_PROTO,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,24,22,216,166 END @@ -135,6 +135,17 @@ END #endif // APSTUDIO_INVOKED + +///////////////////////////////////////////////////////////////////////////// +// +// AFX_DIALOG_LAYOUT +// + +IDD_PROTO AFX_DIALOG_LAYOUT +BEGIN + 0 +END + #endif // Russian (Russia) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/StopSpamPlus/src/options.cpp b/plugins/StopSpamPlus/src/options.cpp index e2d18e72df..f4187a47c2 100644 --- a/plugins/StopSpamPlus/src/options.cpp +++ b/plugins/StopSpamPlus/src/options.cpp @@ -132,7 +132,7 @@ public: item.lParam = (LPARAM)pa->szModuleName; item.pszText = pa->tszAccountName; int idx = m_accounts.InsertItem(&item); - m_accounts.SetCheckState(idx, g_sets.ProtoDisabled(pa->szModuleName)); + m_accounts.SetCheckState(idx, !g_sets.ProtoDisabled(pa->szModuleName)); } return true; } @@ -149,7 +149,7 @@ public: if (!m_accounts.GetItem(&item)) continue; - if (m_accounts.GetCheckState(i) != 0) + if (m_accounts.GetCheckState(i) == 0) out << (char*)item.lParam << " "; } diff --git a/plugins/StopSpamPlus/src/resource.h b/plugins/StopSpamPlus/src/resource.h index 5a61c2abcd..9eecb574c0 100644 --- a/plugins/StopSpamPlus/src/resource.h +++ b/plugins/StopSpamPlus/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. -// Used by C:\Users\xx\Documents\Visual Studio 2010\Projects\myranda\plugins\StopSpamPlus\res\stopspam.rc +// Used by C:\Users\georg\DiskW\miranda-ng\plugins\StopSpamPlus\res\stopspam.rc // #define IDD_MESSAGES 101 #define IDD_MAIN 102 @@ -26,7 +26,7 @@ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 104 +#define _APS_NEXT_RESOURCE_VALUE 105 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1018 #define _APS_NEXT_SYMED_VALUE 101 diff --git a/plugins/StopSpamPlus/src/version.h b/plugins/StopSpamPlus/src/version.h index 3ce9c45789..e18ef9e986 100644 --- a/plugins/StopSpamPlus/src/version.h +++ b/plugins/StopSpamPlus/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 1 #define __RELEASE_NUM 0 -#define __BUILD_NUM 2 +#define __BUILD_NUM 3 #include -- cgit v1.2.3