From c282c03b5521589411138fde3369834989eb4ae8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 5 Apr 2005 18:49:07 +0000 Subject: do not crash if no essid is selected (partially fix #15244) --- perl-install/standalone/drakroam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone/drakroam') 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 -- cgit v1.2.1