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直接连接
if (m_data->m_isConfigured || m_hasPwd == false) {
m_connoperation->activeWirelessConnect(m_wlanDevice, m_data->m_connectUuid);
qDebug()<<"Has configuration, will be activated. ssid = " << m_data->m_NetSsid << Q_FUNC_INFO << __LINE__;
this->onConnectButtonClicked();
// 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;
}
if (!this->m_connectButton->isVisible() && m_data->m_secuType != "") {
@ -364,7 +365,9 @@ void WlanListItem::onShowPwdButtonClicked()
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;
}
KyWirelessConnectSetting settings;

Binary file not shown.

View File

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