From 8d191bf7ce2d62d24c6e0ffac4b2afd7359afa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Thu, 15 Sep 2016 21:48:03 +0200 Subject: [PATCH] Fix segfault in DlgPrefKey::loadSettings() Bug #1623797 --- src/preferences/dialog/dlgprefkey.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/preferences/dialog/dlgprefkey.cpp b/src/preferences/dialog/dlgprefkey.cpp index bfadc78c1ad..a95e608540d 100644 --- a/src/preferences/dialog/dlgprefkey.cpp +++ b/src/preferences/dialog/dlgprefkey.cpp @@ -66,6 +66,8 @@ DlgPrefKey::DlgPrefKey(QWidget* parent, UserSettingsPointer _config) m_keyLineEdits.insert(mixxx::track::io::key::B_FLAT_MINOR, b_flat_minor_edit); m_keyLineEdits.insert(mixxx::track::io::key::B_MINOR, b_minor_edit); + m_pKeyNotation = new ControlProxy(ConfigKey("[Library]", "key_notation"), this); + populate(); loadSettings(); @@ -119,7 +121,6 @@ void DlgPrefKey::loadSettings() { QString notation = m_pConfig->getValueString( ConfigKey(KEY_CONFIG_KEY, KEY_NOTATION)); - m_pKeyNotation = new ControlProxy(ConfigKey("[Library]", "key_notation"), this); if (notation == KEY_NOTATION_OPEN_KEY) { radioNotationOpenKey->setChecked(true); setNotationOpenKey(true);