mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 19:05:36 -04:00
[keyboard] Set initial values for model, layout, variant
When loading the lists, no initial string-value was being set for the model, layout and variant; the configuration could pass right through and pick up empty strings instead. If the user does not change the model, the UI would show "pc105" but the internal setting would still be empty. FIXES #1668
This commit is contained in:
parent
b191f39bdf
commit
18b805d43f
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ Config::Config( QObject* parent )
|
|||
m_setxkbmapTimer.start( QApplication::keyboardInputInterval() );
|
||||
emit prettyStatusChanged();
|
||||
} );
|
||||
|
||||
m_selectedModel = m_keyboardModelsModel->key( m_keyboardModelsModel->currentIndex() );
|
||||
m_selectedLayout = m_keyboardLayoutsModel->item( m_keyboardLayoutsModel->currentIndex() ).first;
|
||||
m_selectedVariant = m_keyboardVariantsModel->key( m_keyboardVariantsModel->currentIndex() );
|
||||
}
|
||||
|
||||
KeyboardModelsModel*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue