添加VPN连接失败的提示
This commit is contained in:
parent
be16f467c1
commit
eae440d3a7
|
@ -212,7 +212,7 @@ void BackThread::execConnLan(QString connName, QString ifname, QString connectTy
|
|||
|
||||
bool isWiredCableAlready = objBackThreadDBus.getWiredCableStateByIfname(ifname);
|
||||
|
||||
if (connectType == "bluetooth" || ifname == "") {
|
||||
if (connectType == "bluetooth" || connectType == "vpn"|| ifname == "") {
|
||||
isWiredCableAlready = true; //对于蓝牙类型的网络不需要接入网线就可以连接
|
||||
mycmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli connection up '" + connName + "'";
|
||||
} else {
|
||||
|
@ -275,7 +275,12 @@ void BackThread::dellConnectLanResult(QString info)
|
|||
} else if(info.indexOf("Carrier/link changed") != -1) {
|
||||
emit connDone(8);
|
||||
} else {
|
||||
emit connDone(9);
|
||||
if (currConnLanType == "vpn"){
|
||||
emit connDone(10);
|
||||
}
|
||||
else{
|
||||
emit connDone(9);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4003,6 +4003,13 @@ void MainWindow::connLanDone(int connFlag)
|
|||
objKyDBus->showDesktopNotify(txt);
|
||||
}
|
||||
|
||||
if (connFlag == 10) {
|
||||
qDebug()<<"Connect VPN Network Failed";
|
||||
is_connect_net_failed = 1;
|
||||
QString txt(tr("Connect VPN Network Failed"));
|
||||
objKyDBus->showDesktopNotify(txt);
|
||||
}
|
||||
|
||||
this->stopLoading();
|
||||
this->is_stop_check_net_state = 0;
|
||||
}
|
||||
|
|
|
@ -1362,6 +1362,11 @@
|
|||
<source>Connect Wired Network Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="4009"/>
|
||||
<source>Connect VPN Network Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="2719"/>
|
||||
<source>IP configuration could not be reserved</source>
|
||||
|
|
|
@ -1521,6 +1521,11 @@
|
|||
<source>Connect Wired Network Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="4009"/>
|
||||
<source>Connect VPN Network Failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="2719"/>
|
||||
<source>IP configuration could not be reserved</source>
|
||||
|
|
Binary file not shown.
|
@ -1517,6 +1517,11 @@
|
|||
<source>Connect Wired Network Failed</source>
|
||||
<translation type="unfinished">连接有线网络失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="4009"/>
|
||||
<source>Connect VPN Network Failed</source>
|
||||
<translation>连接VPN失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="3630"/>
|
||||
<source>IP configuration could not be reserved</source>
|
||||
|
|
Loading…
Reference in New Issue