当收到状态变化时,且网卡名称不存在于当前列表中,删除当前列表中uuid相同的项
This commit is contained in:
parent
199dafc23a
commit
c156426ddb
|
@ -783,6 +783,16 @@ void NetConnect::onActiveConnectionChanged(QString deviceName, QString uuid, int
|
|||
}
|
||||
itemActiveConnectionStatusChanged(item, status);
|
||||
}
|
||||
} else {
|
||||
if (status == ACTIVATED || status == DEACTIVATED) {
|
||||
//虚拟网卡处理
|
||||
QMap<QString, ItemFrame *>::iterator iters;
|
||||
for (iters = deviceFrameMap.begin(); iters != deviceFrameMap.end(); iters++) {
|
||||
if (iters.value()->itemMap.contains(uuid)) {
|
||||
removeOneLanFrame(iters.value(), iters.key(), uuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue