From 750e2da029da6a013239efc19bd7e63b448f2112 Mon Sep 17 00:00:00 2001 From: chenlelin Date: Sat, 2 Jan 2021 10:29:10 +0800 Subject: [PATCH] Fix bug program crash for update wifi list when load wifi list --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9db0e436..7a62e78d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2569,6 +2569,10 @@ void MainWindow::onExternalWifiSwitchChange(bool wifiEnabled) void MainWindow::on_checkWifiListChanged() { + if (is_init_wifi_list || is_connect_hide_wifi) { + return; //遇到启动软件第一次加载wifi列表的时候,或正在连接隐藏wifi,停止更新 + } + if (is_stop_check_net_state==0 && this->is_btnWifiList_clicked==1 && this->isVisible()) { BackThread *loop_bt = new BackThread(); IFace *loop_iface = loop_bt->execGetIface();