In almost all places we use NetworkManager::findNetworkInterface we
later check for the device is not null, do the same here
BUGS: 393707
jgrulich |
Plasma |
In almost all places we use NetworkManager::findNetworkInterface we
later check for the device is not null, do the same here
BUGS: 393707
No Linters Available |
No Unit Test Coverage |
The other option would be not using findNetworkInterface at all since we're already doing qobject_cast<NetworkManager::Device*>(sender()) we already have the device, we don't really need to do a round-trip, but wihtout knowing this code at all it seems like if NetworkManager::findNetworkInterface doesn't find the interface it's because it's being dropped (which makes sense with the bug being about "crash when discoonecting VPN") so it seems better to just ignore the connection at that point.