解决移动热点配置的网卡移除后界面显示错误的BUG
This commit is contained in:
parent
a1ad236ac4
commit
85c34b70df
|
@ -450,12 +450,17 @@ void MobileHotspotWidget::getApInfo()
|
||||||
m_pwdNameLine->setText("12345678");
|
m_pwdNameLine->setText("12345678");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
int index = m_interfaceComboBox->findText(apInfo.at(2));
|
|
||||||
if (index >= 0) {
|
|
||||||
m_apNameLine->setText(apInfo.at(0));
|
m_apNameLine->setText(apInfo.at(0));
|
||||||
m_pwdNameLine->setText(apInfo.at(1));
|
m_pwdNameLine->setText(apInfo.at(1));
|
||||||
|
|
||||||
|
int index = m_interfaceComboBox->findText(apInfo.at(2));
|
||||||
|
if (index >= 0) {
|
||||||
m_interfaceComboBox->setCurrentIndex(index);
|
m_interfaceComboBox->setCurrentIndex(index);
|
||||||
m_interfaceName = apInfo.at(2);
|
m_interfaceName = apInfo.at(2);
|
||||||
|
} else {
|
||||||
|
qDebug() << LOG_HEAD << "no such interface " << apInfo.at(2);
|
||||||
|
}
|
||||||
|
|
||||||
if (apInfo.at(3) == "true") {
|
if (apInfo.at(3) == "true") {
|
||||||
m_switchBtn->setChecked(true);
|
m_switchBtn->setChecked(true);
|
||||||
setUiEnabled(true);
|
setUiEnabled(true);
|
||||||
|
@ -473,9 +478,6 @@ void MobileHotspotWidget::getApInfo()
|
||||||
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
UkccCommon::buriedSettings("MobileHotspot", "Frequency band", QString("select"), m_freqBandComboBox->currentText());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
qDebug() << LOG_HEAD << "no such interface " << apInfo.at(2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue