Fix:Refresh signal is not send when wifi disappered.

Link:http://172.17.66.192/biz/bug-view-49773.html
This commit is contained in:
zhangjiaping 2021-06-02 17:54:22 +08:00
parent a6921ebd1f
commit 932b6be735
2 changed files with 14 additions and 2 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
kylin-nm (3.0.1-1kylin49hw1) v101.hw; urgency=medium
* BUG号#49773
* 需求号:无
* 其他改动:无
-- zhangjiaping <zhangjiaping@kylinos.cn> Wed, 02 Jun 2021 17:53:12 +0800
kylin-nm (3.0.1-1kylin48hw1) v101.hw; urgency=medium kylin-nm (3.0.1-1kylin48hw1) v101.hw; urgency=medium
* BUG号#54745 #53735 #54354 #58278 #56567 * BUG号#54745 #53735 #54354 #58278 #56567

View File

@ -2721,6 +2721,7 @@ void MainWindow::loadWifiListDone(QStringList slist)
// 更新wifi列表 // 更新wifi列表
void MainWindow::updateWifiListDone(QStringList slist) void MainWindow::updateWifiListDone(QStringList slist)
{ {
qDebug()<<"Refreshed wifi list.";
if (hasWifiConnected) { if (hasWifiConnected) {
lbLoadDown->show(); lbLoadDown->show();
lbLoadUp->show(); lbLoadUp->show();
@ -2781,7 +2782,6 @@ void MainWindow::updateWifiListDone(QStringList slist)
else {after_ocf->move(L_VERTICAL_LINE_TO_ITEM, after_ocf->y() - H_NORMAL_ITEM);} else {after_ocf->move(L_VERTICAL_LINE_TO_ITEM, after_ocf->y() - H_NORMAL_ITEM);}
} }
wifiListWidget->resize(W_LIST_WIDGET, wifiListWidget->height() - H_NORMAL_ITEM); wifiListWidget->resize(W_LIST_WIDGET, wifiListWidget->height() - H_NORMAL_ITEM);
break;
//从向外提供的wifi列表中找到并删除这一行 //从向外提供的wifi列表中找到并删除这一行
QStringList list_to_remove; QStringList list_to_remove;
foreach (QStringList list, dbus_wifiList) { foreach (QStringList list, dbus_wifiList) {
@ -2793,6 +2793,9 @@ void MainWindow::updateWifiListDone(QStringList slist)
if (!list_to_remove.isEmpty()) { if (!list_to_remove.isEmpty()) {
dbus_wifiList.removeOne(list_to_remove); dbus_wifiList.removeOne(list_to_remove);
} }
qDebug()<<"移除了一个WiFi将会向控制面板发送信号。ssid="<<lastWname;
emit this->getWifiListFinished();
break;
} }
} }
} }
@ -2897,6 +2900,8 @@ void MainWindow::updateWifiListDone(QStringList slist)
} }
count += 1; count += 1;
qDebug()<<"新增了一个WiFi将会向控制面板发送信号。ssid="<<lastWname;
emit this->getWifiListFinished();
} }
} }
} }
@ -2906,7 +2911,6 @@ void MainWindow::updateWifiListDone(QStringList slist)
this->wifiListWidget->show(); this->wifiListWidget->show();
this->topWifiListWidget->show(); this->topWifiListWidget->show();
this->stopLoading(); this->stopLoading();
emit this->getWifiListFinished();
} }
//用于中英文系统有线网络名称国际话 //用于中英文系统有线网络名称国际话