Fix bug label with text 'wireless-list' can not show sometimes
This commit is contained in:
parent
2f4b401230
commit
a142be1134
|
@ -2288,9 +2288,12 @@ void MainWindow::loadWifiListDone(QStringList slist)
|
||||||
QList<OneConnForm *> itemList = wifiListWidget->findChildren<OneConnForm *>();
|
QList<OneConnForm *> itemList = wifiListWidget->findChildren<OneConnForm *>();
|
||||||
int n = itemList.size();
|
int n = itemList.size();
|
||||||
if (n >= 1) {
|
if (n >= 1) {
|
||||||
|
qDebug() << "111111111111111111";
|
||||||
OneConnForm *lastItem = itemList.at(n-1);
|
OneConnForm *lastItem = itemList.at(n-1);
|
||||||
lastItem->setLine(false); //最后一个item不需要下划线
|
lastItem->setLine(false); //最后一个item不需要下划线
|
||||||
lbNoItemTip->hide();
|
lbNoItemTip->hide();
|
||||||
|
lbTopWifiList->show();
|
||||||
|
btnAddNet->show();
|
||||||
} else {
|
} else {
|
||||||
if (ifWLanConnected) {
|
if (ifWLanConnected) {
|
||||||
lbNoItemTip->show();
|
lbNoItemTip->show();
|
||||||
|
|
Loading…
Reference in New Issue