From 70e141f2170dd95cf1f1c8310bc441883e1fff06 Mon Sep 17 00:00:00 2001 From: kangshuning Date: Fri, 5 Nov 2021 17:39:34 +0800 Subject: [PATCH] bug#89001 --- src/frontend/list-items/wlanlistitem.cpp | 2 +- src/frontend/tab-pages/wlanpage.cpp | 3 ++- translations/kylin-nm_zh_CN.qm | Bin 7267 -> 7279 bytes translations/kylin-nm_zh_CN.ts | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/list-items/wlanlistitem.cpp b/src/frontend/list-items/wlanlistitem.cpp index cd027073..8d050712 100644 --- a/src/frontend/list-items/wlanlistitem.cpp +++ b/src/frontend/list-items/wlanlistitem.cpp @@ -515,7 +515,7 @@ void WlanListItem::onMenuTriggered(QAction *action) void WlanListItem::forgetPwd() { - if (!m_wirelessNetItem.m_isConfigured) { + if (!this->isConfigured()) { m_pwdLineEdit->setText(""); return; } diff --git a/src/frontend/tab-pages/wlanpage.cpp b/src/frontend/tab-pages/wlanpage.cpp index d3949034..876b61e3 100644 --- a/src/frontend/tab-pages/wlanpage.cpp +++ b/src/frontend/tab-pages/wlanpage.cpp @@ -10,6 +10,7 @@ #define ICON_REFRESH_INTERVAL (5*1000) #define EMPTY_SSID "emptyssid" #define LOG_FLAG "[WlanPage]" +#define LAN_PAGE_INDEX 0 WlanPage::WlanPage(QWidget *parent) : TabPage(parent) { @@ -1264,7 +1265,7 @@ void WlanPage::onMainWindowVisibleChanged(const bool &visible) void WlanPage::onWlanPageVisibleChanged(int index) { - if (index == 0) { + if (index == LAN_PAGE_INDEX) { qDebug() << "wlanpage not visible"; showNonePwd(); } diff --git a/translations/kylin-nm_zh_CN.qm b/translations/kylin-nm_zh_CN.qm index 8356eb85af1a5c99d9727659dbf662128a9e7f42..e0f0357845378f32871ddb16ec008b182bd6cb3d 100644 GIT binary patch delta 654 zcmY+BT}V@L7{;ITwa>HDj%_;ny@8F*DpT|W%w*9AAqigSEDI_# z)PHjpVnjt53xzrR7B3poMX-WI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CN.ts @@ -550,7 +550,7 @@ Kylin NM - 麒麟网络工具 + 麒麟网络设置工具 @@ -595,7 +595,7 @@ Kylin NM - 麒麟网络工具 + 麒麟网络设置工具 @@ -891,7 +891,7 @@ Kylin NM - 麒麟网络工具 + 麒麟网络设置工具