diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-15 12:15:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-15 12:15:47 +0300 |
commit | d3e9d8a3be07d9d644b7240ed33ce957145e9756 (patch) | |
tree | 94c82c675bf3d99c2d5f69ae87d00e7a32d9a799 /plugins/XSoundNotify/src | |
parent | c08a341e55a66ed648048d2d5d4f010a172f9f42 (diff) |
fixes #2885 (XSoundNotify: crash on settings page)
Diffstat (limited to 'plugins/XSoundNotify/src')
-rw-r--r-- | plugins/XSoundNotify/src/options.cpp | 4 | ||||
-rw-r--r-- | plugins/XSoundNotify/src/version.h | 4 | ||||
-rw-r--r-- | plugins/XSoundNotify/src/xsn_main.cpp | 2 |
3 files changed, 6 insertions, 4 deletions
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 <stdver.h> 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_Data> XSN_Users(10, PtrKeySortT);
+LIST<XSN_Data> XSN_Users(10, HandleKeySortT);
HGENMENU hChangeSound = nullptr;
MWindowList hChangeSoundDlgList = nullptr;
BYTE isIgnoreSound = 0, isOwnSound = 0, isIgnoreAccSound = 0, isAccSound = 0;
|