Merge branch '190779' into 'yhkylin/v101'
fix(hotspot):when ap name length less then max length, no need to set text(#190799) See merge request kylinos-src/kylin-nm!261
This commit is contained in:
commit
ed3f207b0d
|
@ -291,11 +291,10 @@ void MobileHotspotWidget::onApLineEditTextEdit(QString text)
|
|||
for ( ; i < text.length(); ++i) {
|
||||
count += text.mid(i,1).toLocal8Bit().length();
|
||||
if (count > AP_NAME_MAX_LENGTH) {
|
||||
break;
|
||||
m_apNameLine->setText(text.left(i));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
m_apNameLine->setText(text.left(i));
|
||||
}
|
||||
|
||||
void MobileHotspotWidget::onPwdTextChanged()
|
||||
|
|
Loading…
Reference in New Issue