summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CCtrlCheck.cpp1
-rw-r--r--src/mir_core/src/CDlgBase.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/src/CCtrlCheck.cpp b/src/mir_core/src/CCtrlCheck.cpp
index 7d26af32fd..a20a1a9275 100644
--- a/src/mir_core/src/CCtrlCheck.cpp
+++ b/src/mir_core/src/CCtrlCheck.cpp
@@ -58,7 +58,6 @@ int CCtrlCheck::GetState()
void CCtrlCheck::SetState(int state)
{
::SendMessage(m_hwnd, BM_SETCHECK, state, 0);
- OnChange(this);
}
bool CCtrlCheck::IsChecked()
diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp
index 7c079cc258..dcfe15b292 100644
--- a/src/mir_core/src/CDlgBase.cpp
+++ b/src/mir_core/src/CDlgBase.cpp
@@ -218,6 +218,9 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
if (!OnInitDialog())
return FALSE;
+ for (auto &it : m_controls)
+ it->OnChange(it);
+
m_bInitialized = true;
return TRUE;