diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-04-29 10:28:35 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-04-29 10:28:35 +0000 |
commit | d24ad3758629165bf59efb97af87bf6509928342 (patch) | |
tree | a593dad87ee9632898f1bbc354d873e8f8cbf5b4 | |
parent | a1a684be0237e0e64e8043e52999cba8b57c8639 (diff) | |
download | drakx-backup-do-not-use-d24ad3758629165bf59efb97af87bf6509928342.tar drakx-backup-do-not-use-d24ad3758629165bf59efb97af87bf6509928342.tar.gz drakx-backup-do-not-use-d24ad3758629165bf59efb97af87bf6509928342.tar.bz2 drakx-backup-do-not-use-d24ad3758629165bf59efb97af87bf6509928342.tar.xz drakx-backup-do-not-use-d24ad3758629165bf59efb97af87bf6509928342.zip |
do not write blank ESSID
-rwxr-xr-x | perl-install/standalone/drakroam | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam index 8a92c9514..eeecff4bc 100755 --- a/perl-install/standalone/drakroam +++ b/perl-install/standalone/drakroam @@ -212,11 +212,15 @@ gtkadd(gtkset_border_width($w->{window}, 2), 1, create_scrolled_window($AvailableList), 0, gtkpack(create_hbox(), gtksignal_connect(Gtk2::Button->new(N("Add")), clicked => sub { - my @selected = $AvailableList->get_selected_indices or return; + my @selected = $AvailableList->get_selected_indices; my ($mode, $channel, $key); my $essid = $AvailableList->{data}["@selected"][0]; my $dhcp = 1; # assume dhcp for new networks - &AddNet($essid, $mode, $channel, $dhcp, $key); + if ($essid) { + &AddNet($essid, $mode, $channel, $dhcp, $key); + } else { + print "ESSID is empty, skipping network\n"; + } }), gtksignal_connect(Gtk2::Button->new(N("Rescan")), clicked => sub { &UpdateAvailable }) ) |