summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-02-15 21:14:22 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-02-15 21:32:49 +0100
commit30ce8c305bc65543a5a53f2d492c3d32335d2b89 (patch)
treef77a86305ae34a1c43da1cce66afa80903684ff2
parent8b2abe0e2c8f162544a2562fc18a7becbc55d233 (diff)
downloadNetworkManager-30ce8c305bc65543a5a53f2d492c3d32335d2b89.tar.gz
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.
-rw-r--r--src/devices/nm-device.c5
1 files 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);
}
/**