summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakroam
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-05 18:49:07 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-05 18:49:07 +0000
commitc282c03b5521589411138fde3369834989eb4ae8 (patch)
tree061e368dfe8373abe20c8452dcb022af88f79a37 /perl-install/standalone/drakroam
parent996d9312b30bfdffd6f5e69b30380884f527e693 (diff)
downloaddrakx-backup-do-not-use-c282c03b5521589411138fde3369834989eb4ae8.tar
drakx-backup-do-not-use-c282c03b5521589411138fde3369834989eb4ae8.tar.gz
drakx-backup-do-not-use-c282c03b5521589411138fde3369834989eb4ae8.tar.bz2
drakx-backup-do-not-use-c282c03b5521589411138fde3369834989eb4ae8.tar.xz
drakx-backup-do-not-use-c282c03b5521589411138fde3369834989eb4ae8.zip
do not crash if no essid is selected (partially fix #15244)
Diffstat (limited to 'perl-install/standalone/drakroam')
-rwxr-xr-xperl-install/standalone/drakroam2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam
index 9c9aaeee5..930bca1fc 100755
--- a/perl-install/standalone/drakroam
+++ b/perl-install/standalone/drakroam
@@ -201,7 +201,7 @@ 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;
+ my @selected = $AvailableList->get_selected_indices or return;
my ($mode, $channel, $key);
my $essid = $AvailableList->{data}["@selected"][0];
my $dhcp = 1; # assume dhcp for new networks