Skip to content

Commit

Permalink
Fix segfault in DlgPrefKey::loadSettings() Bug #1623797
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 15, 2016
1 parent dcff13a commit 8d191bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preferences/dialog/dlgprefkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8d191bf

Please sign in to comment.