From 493d56877f1e84620d8a1c1274c356bc1ec0ac19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Sat, 23 Mar 2019 23:29:12 +0100 Subject: [PATCH] Fix inital key is dlgprefkey.cpp --- src/preferences/dialog/dlgprefkey.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/preferences/dialog/dlgprefkey.cpp b/src/preferences/dialog/dlgprefkey.cpp index a6a6dbb585e..018f9b0cbc7 100644 --- a/src/preferences/dialog/dlgprefkey.cpp +++ b/src/preferences/dialog/dlgprefkey.cpp @@ -129,6 +129,7 @@ void DlgPrefKey::loadSettings() { } } + setNotation(notation_type); KeyUtils::setNotation(notation); m_pKeyNotation->set(static_cast(notation_type)); @@ -148,17 +149,17 @@ void DlgPrefKey::slotResetToDefaults() { if (defaultNotation == KEY_NOTATION_LANCELOT) { radioNotationLancelot->setChecked(true); notation_type = KeyUtils::LANCELOT; - } else if (defaultNotation == KEY_NOTATION_OPEN_KEY) { - radioNotationOpenKey->setChecked(true); - notation_type = KeyUtils::OPEN_KEY; } else if (defaultNotation == KEY_NOTATION_TRADITIONAL) { radioNotationTraditional->setChecked(true); notation_type = KeyUtils::TRADITIONAL; } else if (defaultNotation == KEY_NOTATION_CUSTOM) { radioNotationCustom->setChecked(true); notation_type = KeyUtils::CUSTOM; + } else { // KEY_NOTATION_OPEN_KEY + radioNotationOpenKey->setChecked(true); + notation_type = KeyUtils::OPEN_KEY; } - setNotationLancelot(notation_type); + setNotation(notation_type); slotUpdate(); }