Commit 94b4aab4 authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez

windows: fix device selection on start

Refs #72790

Change-Id: I894a7f164e9abd8c23f20b6c5a47ecd035a10a5e
parent e6538795
......@@ -42,10 +42,10 @@ ConfigurationWidget::ConfigurationWidget(QWidget *parent) :
ui->accountView->setModel(accountModel_);
//FIXME : Seems to set the active device instead of taking the default one
isLoading_ = true;
ui->deviceBox->setModel(deviceModel_);
ui->deviceBox->setCurrentIndex(deviceModel_->activeIndex());
connect(deviceModel_, SIGNAL(currentIndexChanged(int)),
this, SLOT(deviceIndexChanged(int)));
connect(ui->accountView->selectionModel(),
SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
......@@ -68,6 +68,11 @@ ConfigurationWidget::~ConfigurationWidget()
delete ui;
}
void
ConfigurationWidget::deviceIndexChanged(int index) {
ui->deviceBox->setCurrentIndex(index);
}
void
ConfigurationWidget::on_deviceBox_currentIndexChanged(int index)
{
......
......@@ -50,11 +50,11 @@ private slots:
void on_testVideoButton_toggled(bool checked);
void on_deleteAccountButton_clicked();
void on_addAccountButton_clicked();
void on_startupBox_toggled(bool checked);
private slots:
void accountSelected(QItemSelection itemSel);
void on_startupBox_toggled(bool checked);
void deviceIndexChanged(int index);
private:
Ui::ConfigurationWidget *ui;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment