From 30ce8c305bc65543a5a53f2d492c3d32335d2b89 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 15 Feb 2016 21:14:22 +0100 Subject: [PATCH] device: always do a unrealized delete check when rechecking available connections It could be that what changed is the unrealize flag, not the number available connections. That could happen when a last connection for a software device is removed. --- src/devices/nm-device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index cbcb2c7271..ef67230641 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -9378,10 +9378,9 @@ nm_device_recheck_available_connections (NMDevice *self) changed = TRUE; } - if (changed) { + if (changed) available_connections_notify (self); - available_connections_check_delete_unrealized (self); - } + available_connections_check_delete_unrealized (self); } /**