summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-07-29 13:03:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-07-29 13:03:31 +0300
commit4347e469ab0a18edbc5b7bea431829fe16883054 (patch)
tree1bf54c5d277c56572b5cfe0d1d7edb09e5f8bbe5 /plugins/TabSRMM/src/utils.cpp
parentbe8933b41671a50da5ae699df960aecf2a47e911 (diff)
tabSRMM: fix for the perversion with private container settings
Diffstat (limited to 'plugins/TabSRMM/src/utils.cpp')
-rw-r--r--plugins/TabSRMM/src/utils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp
index 0984e88794..926320e470 100644
--- a/plugins/TabSRMM/src/utils.cpp
+++ b/plugins/TabSRMM/src/utils.cpp
@@ -688,21 +688,21 @@ bool CMsgDialog::MustPlaySound() const
if (m_pContainer->m_bHidden) // hidden container is treated as closed, so play the sound
return true;
- if (m_pContainer->m_flags.m_bNoSound || NEN::bNoSounds)
+ if (m_pContainer->cfg.flags.m_bNoSound || NEN::bNoSounds)
return false;
// window minimized, check if sound has to be played
if (::IsIconic(m_pContainer->m_hwnd))
- return m_pContainer->m_flagsEx.m_bSoundMinimized;
+ return m_pContainer->cfg.flagsEx.m_bSoundMinimized;
// window in foreground
if (m_pContainer->m_hwnd != ::GetForegroundWindow())
- return m_pContainer->m_flagsEx.m_bSoundUnfocused;
+ return m_pContainer->cfg.flagsEx.m_bSoundUnfocused;
if (m_pContainer->m_hwndActive == GetHwnd())
- return m_pContainer->m_flagsEx.m_bSoundFocused;
+ return m_pContainer->cfg.flagsEx.m_bSoundFocused;
- return m_pContainer->m_flagsEx.m_bSoundInactive;
+ return m_pContainer->cfg.flagsEx.m_bSoundInactive;
}
/////////////////////////////////////////////////////////////////////////////////////////