Merge pull request #2196 from AsahiLinux/keyboard-init-order
keyboard: Do the autodetection stuff after setConfigurationMap
This commit is contained in:
commit
7b36dfb351
@ -111,8 +111,8 @@ private:
|
|||||||
QString m_xOrgConfFileName;
|
QString m_xOrgConfFileName;
|
||||||
QString m_convertedKeymapPath;
|
QString m_convertedKeymapPath;
|
||||||
bool m_writeEtcDefaultKeyboard = true;
|
bool m_writeEtcDefaultKeyboard = true;
|
||||||
bool m_useLocale1;
|
bool m_useLocale1 = false;
|
||||||
bool m_guessLayout;
|
bool m_guessLayout = false;
|
||||||
|
|
||||||
// The state determines whether we guess settings or preserve them:
|
// The state determines whether we guess settings or preserve them:
|
||||||
// - Initial -> Guessing
|
// - Initial -> Guessing
|
||||||
|
@ -22,7 +22,6 @@ KeyboardViewStep::KeyboardViewStep( QObject* parent )
|
|||||||
, m_config( new Config( this ) )
|
, m_config( new Config( this ) )
|
||||||
, m_widget( new KeyboardPage( m_config ) )
|
, m_widget( new KeyboardPage( m_config ) )
|
||||||
{
|
{
|
||||||
m_config->detectCurrentKeyboardLayout();
|
|
||||||
emit nextStatusChanged( true );
|
emit nextStatusChanged( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,4 +109,5 @@ void
|
|||||||
KeyboardViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
KeyboardViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
{
|
{
|
||||||
m_config->setConfigurationMap( configurationMap );
|
m_config->setConfigurationMap( configurationMap );
|
||||||
|
m_config->detectCurrentKeyboardLayout();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user