summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/ui_utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index b104dde4c3..22f46ea743 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -1767,7 +1767,9 @@ CCtrlBase::CCtrlBase(CDlgBase *wnd, int idCtrl) :
if (wnd) {
m_next = wnd->m_first;
wnd->m_first = this;
-} }
+ }
+ else m_next = NULL;
+}
void CCtrlBase::OnInit()
{