bug#89001

This commit is contained in:
kangshuning 2021-11-05 17:39:34 +08:00
parent 5d43e78c62
commit 70e141f217
4 changed files with 6 additions and 5 deletions

View File

@ -515,7 +515,7 @@ void WlanListItem::onMenuTriggered(QAction *action)
void WlanListItem::forgetPwd()
{
if (!m_wirelessNetItem.m_isConfigured) {
if (!this->isConfigured()) {
m_pwdLineEdit->setText("");
return;
}

View File

@ -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();
}

Binary file not shown.

View File

@ -550,7 +550,7 @@
<message>
<location filename="../src/frontend/list-items/listitem.cpp" line="63"/>
<source>Kylin NM</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/list-items/listitem.cpp" line="66"/>
@ -595,7 +595,7 @@
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="30"/>
<source>Kylin NM</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="33"/>
@ -891,7 +891,7 @@
<message>
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="127"/>
<source>Kylin NM</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="130"/>