Fix bug After upgrading through the update manager, the wired connection is abnormal

This commit is contained in:
chenlelin 2021-01-16 09:40:04 +08:00
parent d0471d084c
commit 32097d9974
2 changed files with 12 additions and 1 deletions

View File

@ -57,7 +57,12 @@ void KSimpleNM::execGetLanList()
isExecutingGetLanList = true;
shellOutputLan = "";
runProcessLan->start("nmcli -f type,uuid,name connection show");
QString getCmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli -f type,uuid,name connection show";
QStringList options;
options << "-c" << getCmd;
runProcessLan->start("/bin/bash",options);
//runProcessLan->start("nmcli -f type,uuid,name connection show");
}
//获取无线网络列表数据

View File

@ -1336,6 +1336,12 @@ void MainWindow::on_btnWifiList_clicked()
// 获取lan列表回调
void MainWindow::getLanListDone(QStringList slist)
{
qDebug()<<"0 ";
foreach (QString str, slist) {
qDebug()<<str;
}
qDebug()<<"0 ";
if (this->is_btnWifiList_clicked == 1) {
return;
}