fix(hotspot):when ap name length less then max length, no need to set text(#190799)

This commit is contained in:
jzxc95 2023-09-06 17:33:57 +08:00
parent 45c1d17acb
commit fc767c4730
1 changed files with 2 additions and 3 deletions

View File

@ -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()