From b0e6c7990679f8732caffec84495b11b0150d8c8 Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Wed, 29 Sep 2021 16:56:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/tab-pages/wlanpage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/tab-pages/wlanpage.cpp b/src/frontend/tab-pages/wlanpage.cpp index c7bef5ad..e589c3df 100644 --- a/src/frontend/tab-pages/wlanpage.cpp +++ b/src/frontend/tab-pages/wlanpage.cpp @@ -906,7 +906,8 @@ void WlanPage::showDetailPage(QString devName, QString ssid) QString actSsid; m_resource->getSsidByUuid(actMap[devName].at(0), actSsid, devName); - bool isActive = (actSsid == ssid); + + bool isActive = !actSsid.compare(ssid); NetDetail *netDetail = new NetDetail(devName, ssid, data.m_connectUuid, isActive, true, true, this); netDetail->show(); }