当收到状态变化时,且网卡名称不存在于当前列表中,删除当前列表中uuid相同的项

This commit is contained in:
jzxc95 2021-11-03 11:21:15 +08:00
parent 199dafc23a
commit c156426ddb
1 changed files with 10 additions and 0 deletions

View File

@ -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);
}
}
}
}
}
}