diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-10 16:09:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-10 16:09:07 +0300 |
commit | 8f7b9a76a69cbe33a9050171a1e139d726857ca1 (patch) | |
tree | f72bcb403bdadbefaefc13d4cd73d50649ac65f0 /plugins/TabSRMM/src/chat_tools.cpp | |
parent | 8355eb65b11a9d581b57ad061449838df0353bf1 (diff) |
code reorder to hide as much data as possible
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 256648b33c..0caa7224a3 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -213,9 +213,9 @@ void DoFlashAndSoundWorker(FLASH_PARAMS *p) if (dat) {
p->bInactive = dat->m_pContainer->m_hwnd != GetForegroundWindow();
p->bActiveTab = (dat->m_pContainer->m_hwndActive == si->pDlg->GetHwnd());
+ if (p->sound && dat->MustPlaySound())
+ SkinPlaySound(p->sound);
}
- if (p->sound && Utils::mustPlaySound(si->pDlg))
- SkinPlaySound(p->sound);
}
else if (p->sound)
SkinPlaySound(p->sound);
|