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:
赵世旭 2023-09-08 06:18:27 +00:00
commit ed3f207b0d
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()