Fix bug After upgrading through the update manager, the wired connection is abnormal
This commit is contained in:
parent
d0471d084c
commit
32097d9974
|
@ -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");
|
||||
}
|
||||
|
||||
//获取无线网络列表数据
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue