[keyboard] Hook up the model-selection again

This commit is contained in:
Adriaan de Groot 2020-10-28 14:03:46 +01:00
parent 87aafb2442
commit 168be02c96

View File

@ -57,7 +57,10 @@ KeyboardPage::KeyboardPage( Config* config, QWidget* parent )
connect( ui->buttonRestore, &QPushButton::clicked, [config=config] {
config->keyboardModels()->setCurrentIndex();
} );
connect( ui->physicalModelSelector,
QOverload<int>::of( &QComboBox::currentIndexChanged ),
config->keyboardModels(),
QOverload<int>::of( &KeyboardModelsModel::setCurrentIndex ) );
CALAMARES_RETRANSLATE( ui->retranslateUi( this ); )
}