fix(hotspot):when ap name length less then max length, no need to set text(#190799)
This commit is contained in:
parent
45c1d17acb
commit
fc767c4730
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MobileHotspotWidget::onPwdTextChanged()
|
||||
|
|
Loading…
Reference in New Issue