mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix resetting AVForm resolution combobox index to get change signal always fired during init
This commit is contained in:
parent
c018165497
commit
4540fb09aa
|
@ -125,6 +125,8 @@ void AVForm::onResProbingFinished(QList<QSize> res)
|
||||||
bodyUI->videoModescomboBox->blockSignals(true);
|
bodyUI->videoModescomboBox->blockSignals(true);
|
||||||
for (QSize r : res)
|
for (QSize r : res)
|
||||||
bodyUI->videoModescomboBox->addItem(QString("%1x%2").arg(QString::number(r.width()),QString::number(r.height())), r);
|
bodyUI->videoModescomboBox->addItem(QString("%1x%2").arg(QString::number(r.width()),QString::number(r.height())), r);
|
||||||
|
//reset index, otherwise cameras with only one resolution won't get initialized
|
||||||
|
bodyUI->videoModescomboBox->setCurrentIndex(-1);
|
||||||
bodyUI->videoModescomboBox->blockSignals(false);
|
bodyUI->videoModescomboBox->blockSignals(false);
|
||||||
|
|
||||||
bodyUI->videoModescomboBox->setCurrentIndex(bodyUI->videoModescomboBox->count()-1);
|
bodyUI->videoModescomboBox->setCurrentIndex(bodyUI->videoModescomboBox->count()-1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user