From d3e9d8a3be07d9d644b7240ed33ce957145e9756 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 May 2021 12:15:47 +0300 Subject: fixes #2885 (XSoundNotify: crash on settings page) --- plugins/XSoundNotify/src/options.cpp | 4 +++- plugins/XSoundNotify/src/version.h | 4 ++-- plugins/XSoundNotify/src/xsn_main.cpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/XSoundNotify') diff --git a/plugins/XSoundNotify/src/options.cpp b/plugins/XSoundNotify/src/options.cpp index bab5567543..31237230fb 100644 --- a/plugins/XSoundNotify/src/options.cpp +++ b/plugins/XSoundNotify/src/options.cpp @@ -178,9 +178,11 @@ public: void onChange_Ignore(CCtrlCheck *) { + if (!m_bInitialized) + return; + auto *p = ObtainData(); p->bIgnore = chkIgnore.GetState(); - NotifyChange(); } void onClick_Choose(CCtrlButton *) diff --git a/plugins/XSoundNotify/src/version.h b/plugins/XSoundNotify/src/version.h index 82b32b0e64..30df378748 100644 --- a/plugins/XSoundNotify/src/version.h +++ b/plugins/XSoundNotify/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 1 -#define __MINOR_VERSION 1 +#define __MINOR_VERSION 2 #define __RELEASE_NUM 0 -#define __BUILD_NUM 4 +#define __BUILD_NUM 1 #include diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 7d74b9e018..90a14f5c9c 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -11,7 +11,7 @@ There is no warranty. CMPlugin g_plugin; -LIST XSN_Users(10, PtrKeySortT); +LIST XSN_Users(10, HandleKeySortT); HGENMENU hChangeSound = nullptr; MWindowList hChangeSoundDlgList = nullptr; BYTE isIgnoreSound = 0, isOwnSound = 0, isIgnoreAccSound = 0, isAccSound = 0; -- cgit v1.2.3