Fix Bug #83125#83143#81343

This commit is contained in:
jinxujie 2021-09-29 14:21:56 +08:00
parent 96811a0673
commit bb1740e747
3 changed files with 10 additions and 7 deletions

View File

@ -285,8 +285,9 @@ void WlanListItem::onNetButtonClicked()
} }
//有配置或者无密码的wifi直接连接 //有配置或者无密码的wifi直接连接
if (m_data->m_isConfigured || m_hasPwd == false) { if (m_data->m_isConfigured || m_hasPwd == false) {
m_connoperation->activeWirelessConnect(m_wlanDevice, m_data->m_connectUuid); this->onConnectButtonClicked();
qDebug()<<"Has configuration, will be activated. ssid = " << m_data->m_NetSsid << Q_FUNC_INFO << __LINE__; // m_connoperation->activeWirelessConnect(m_wlanDevice, m_data->m_connectUuid);//初始化没有uuid只有激活一次才有uuid
qDebug() << "Has configuration, will be activated. ssid = " << m_data->m_NetSsid << m_wlanDevice << m_data->m_connectUuid << Q_FUNC_INFO << __LINE__;
return; return;
} }
if (!this->m_connectButton->isVisible() && m_data->m_secuType != "") { if (!this->m_connectButton->isVisible() && m_data->m_secuType != "") {
@ -364,7 +365,9 @@ void WlanListItem::onShowPwdButtonClicked()
void WlanListItem::onConnectButtonClicked() void WlanListItem::onConnectButtonClicked()
{ {
if (!m_connectButton->isEnabled() || !m_data) { if (m_data->m_secuType.isEmpty() || m_data->m_secuType == "") {
qDebug() << "connect to no password wifi" << Q_FUNC_INFO << __LINE__;
} else if (!m_connectButton->isEnabled() || !m_data) {
return; return;
} }
KyWirelessConnectSetting settings; KyWirelessConnectSetting settings;

Binary file not shown.

View File

@ -213,12 +213,12 @@
<message> <message>
<location filename="frontend/tab-pages/lanpage.cpp" line="507"/> <location filename="frontend/tab-pages/lanpage.cpp" line="507"/>
<source>LAN Disconnected Successfully</source> <source>LAN Disconnected Successfully</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<location filename="frontend/tab-pages/lanpage.cpp" line="528"/> <location filename="frontend/tab-pages/lanpage.cpp" line="528"/>
<source>LAN Connected Successfully</source> <source>LAN Connected Successfully</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
</context> </context>
<context> <context>
@ -532,12 +532,12 @@
<message> <message>
<location filename="frontend/tab-pages/wlanpage.cpp" line="464"/> <location filename="frontend/tab-pages/wlanpage.cpp" line="464"/>
<source>WLAN Connected Successfully</source> <source>WLAN Connected Successfully</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<location filename="frontend/tab-pages/wlanpage.cpp" line="474"/> <location filename="frontend/tab-pages/wlanpage.cpp" line="474"/>
<source>WLAN Disconnected Successfully</source> <source>WLAN Disconnected Successfully</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
</context> </context>
</TS> </TS>