Fix bug can not connected wired network success
This commit is contained in:
parent
9c9fcf917b
commit
98d95d209f
|
@ -1740,7 +1740,7 @@ void KylinDBus::slot_timeout()
|
|||
//有线网的Ip属性变化时的响应函数
|
||||
void KylinDBus::onLanIpPropertiesChanged()
|
||||
{
|
||||
if (!mw->is_stop_check_net_state) {
|
||||
if (!mw->isHandlingWiredCableOn) {
|
||||
emit this->updateWiredList(0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -967,6 +967,7 @@ void MainWindow::onPhysicalCarrierChanged(bool flag)
|
|||
{
|
||||
this->startLoading();
|
||||
if (flag) {
|
||||
isHandlingWiredCableOn = true;
|
||||
is_stop_check_net_state = 1;
|
||||
qDebug()<<"插入了有线网的网线";
|
||||
syslog(LOG_DEBUG,"wired physical cable is already plug in");
|
||||
|
@ -1006,6 +1007,7 @@ void MainWindow::onCarrierUpHandle()
|
|||
this->stopLoading();
|
||||
onBtnNetListClicked(1);
|
||||
is_stop_check_net_state = 0;
|
||||
isHandlingWiredCableOn = false;
|
||||
}
|
||||
|
||||
void MainWindow::onCarrierDownHandle()
|
||||
|
|
|
@ -185,6 +185,7 @@ public:
|
|||
bool isReconnectingLan = false; //是否正在执行lan的回连
|
||||
int addNumberForWifi = 0; //短时间内收到关于wifi连接信号的次数
|
||||
bool isHuaWeiPC;
|
||||
bool isHandlingWiredCableOn = false;
|
||||
bool canReconnectWifiTimeInterval = true;
|
||||
QVector<QStringList> dbus_wifiList; //其他组件通过dbus接口获取到的wifi列表,第一个元素一定为已连接wifi,若没有已连接wifi则显示为--
|
||||
void requestRefreshWifiList(); //申请刷新wifi列表
|
||||
|
|
Loading…
Reference in New Issue