Fix bug label with text 'wireless-list' can not show sometimes

This commit is contained in:
chenlelin 2021-04-09 11:31:35 +08:00
parent 2f4b401230
commit a142be1134
1 changed files with 3 additions and 0 deletions

View File

@ -2288,9 +2288,12 @@ void MainWindow::loadWifiListDone(QStringList slist)
QList<OneConnForm *> itemList = wifiListWidget->findChildren<OneConnForm *>();
int n = itemList.size();
if (n >= 1) {
qDebug() << "111111111111111111";
OneConnForm *lastItem = itemList.at(n-1);
lastItem->setLine(false); //最后一个item不需要下划线
lbNoItemTip->hide();
lbTopWifiList->show();
btnAddNet->show();
} else {
if (ifWLanConnected) {
lbNoItemTip->show();