Fetch updated device info after resolve/clear neighbors
This matches the behaviour of these buttons within the devices widget
This commit is contained in:
parent
9d97fefad3
commit
6d438e2816
@ -225,6 +225,13 @@ void PortStatsWindow::on_tbResolveNeighbors_clicked()
|
|||||||
{
|
{
|
||||||
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
||||||
resolveDeviceNeighbors(&portList[i].portList);
|
resolveDeviceNeighbors(&portList[i].portList);
|
||||||
|
|
||||||
|
// Update device info for the just processed portgroup
|
||||||
|
for (int j = 0; j < portList[i].portList.size(); j++)
|
||||||
|
{
|
||||||
|
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
||||||
|
getDeviceInfo(portList[i].portList[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,6 +247,13 @@ void PortStatsWindow::on_tbClearNeighbors_clicked()
|
|||||||
{
|
{
|
||||||
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
||||||
clearDeviceNeighbors(&portList[i].portList);
|
clearDeviceNeighbors(&portList[i].portList);
|
||||||
|
|
||||||
|
// Update device info for the just processed portgroup
|
||||||
|
for (int j = 0; j < portList[i].portList.size(); j++)
|
||||||
|
{
|
||||||
|
pgl->portGroupByIndex(portList.at(i).portGroupId).
|
||||||
|
getDeviceInfo(portList[i].portList[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user