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() void WlanListItem::forgetPwd()
{ {
if (!m_wirelessNetItem.m_isConfigured) { if (!this->isConfigured()) {
m_pwdLineEdit->setText(""); m_pwdLineEdit->setText("");
return; return;
} }

View File

@ -10,6 +10,7 @@
#define ICON_REFRESH_INTERVAL (5*1000) #define ICON_REFRESH_INTERVAL (5*1000)
#define EMPTY_SSID "emptyssid" #define EMPTY_SSID "emptyssid"
#define LOG_FLAG "[WlanPage]" #define LOG_FLAG "[WlanPage]"
#define LAN_PAGE_INDEX 0
WlanPage::WlanPage(QWidget *parent) : TabPage(parent) WlanPage::WlanPage(QWidget *parent) : TabPage(parent)
{ {
@ -1264,7 +1265,7 @@ void WlanPage::onMainWindowVisibleChanged(const bool &visible)
void WlanPage::onWlanPageVisibleChanged(int index) void WlanPage::onWlanPageVisibleChanged(int index)
{ {
if (index == 0) { if (index == LAN_PAGE_INDEX) {
qDebug() << "wlanpage not visible"; qDebug() << "wlanpage not visible";
showNonePwd(); showNonePwd();
} }

Binary file not shown.

View File

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