summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-26 17:38:13 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-26 17:38:13 +0000
commit28b910c1ae330cce561f120fdcb714fee46a0afe (patch)
tree7a850bc93978bc3a2db040301350b36aec455695 /lib/network/connection_manager.pm
parent63f09fd1f7ece771e7f337ce83ddc57eda7d5541 (diff)
downloaddrakx-net-28b910c1ae330cce561f120fdcb714fee46a0afe.tar
drakx-net-28b910c1ae330cce561f120fdcb714fee46a0afe.tar.gz
drakx-net-28b910c1ae330cce561f120fdcb714fee46a0afe.tar.bz2
drakx-net-28b910c1ae330cce561f120fdcb714fee46a0afe.tar.xz
drakx-net-28b910c1ae330cce561f120fdcb714fee46a0afe.zip
setup connection if needed when updating networks list
Diffstat (limited to 'lib/network/connection_manager.pm')
-rw-r--r--lib/network/connection_manager.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index d74b92f..55de3c6 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -265,6 +265,9 @@ sub filter_networks {
sub update_networks {
my ($cmanager) = @_;
+
+ check_setup($cmanager) || setup_connection($cmanager) or return;
+
@{$cmanager->{gui}{networks_list}{data}} = ();
if ($cmanager->{connection}) {