Fix: Refresh wifi failed when it is in lan list.
This commit is contained in:
parent
4464c91e06
commit
1a8c2fc251
|
@ -1735,10 +1735,10 @@ void MainWindow::getWifiListDone(QStringList slist)
|
||||||
current_wifi_list_state = LOAD_WIFI_LIST;
|
current_wifi_list_state = LOAD_WIFI_LIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->is_btnLanList_clicked == 1) {
|
if (this->is_btnLanList_clicked == 1 && current_wifi_list_state != REFRESH_WIFI) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (current_wifi_list_state == LOAD_WIFI_LIST) {
|
if (current_wifi_list_state == LOAD_WIFI_LIST || current_wifi_list_state == REFRESH_WIFI) {
|
||||||
//qDebug() << "loadwifi的列表";
|
//qDebug() << "loadwifi的列表";
|
||||||
loadWifiListDone(slist);
|
loadWifiListDone(slist);
|
||||||
is_init_wifi_list = 0;
|
is_init_wifi_list = 0;
|
||||||
|
@ -4048,6 +4048,7 @@ int MainWindow::getScreenGeometry(QString methodName)
|
||||||
|
|
||||||
void MainWindow::requestRefreshWifiList()
|
void MainWindow::requestRefreshWifiList()
|
||||||
{
|
{
|
||||||
|
current_wifi_list_state = REFRESH_WIFI;
|
||||||
this->ksnm->execGetWifiList(this->wcardname);
|
this->ksnm->execGetWifiList(this->wcardname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
#define LOAD_WIFI_LIST 0
|
#define LOAD_WIFI_LIST 0
|
||||||
#define UPDATE_WIFI_LIST 1
|
#define UPDATE_WIFI_LIST 1
|
||||||
#define RECONNECT_WIFI 2
|
#define RECONNECT_WIFI 2
|
||||||
|
#define REFRESH_WIFI 3
|
||||||
|
|
||||||
class OneConnForm;
|
class OneConnForm;
|
||||||
class ConfForm;
|
class ConfForm;
|
||||||
|
|
Loading…
Reference in New Issue