From a151c283ee8de07d853166d2ae481779a66f3643 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 19 Aug 2002 12:15:09 +0000 Subject: toggle the ignore flag only when the button press was really done in an existing col/row --- edit-urpm-sources.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index c0c6e4aa..7906c06c 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -216,7 +216,7 @@ sub mainwindow { $clist->set_column_auto_resize($_, 1) foreach qw(0 1); $clist->set_column_justification(0, 'center'); $clist->signal_connect(button_press_event => sub { my ($row, $col) = $clist->get_selection_info($_[1]->{x}, $_[1]->{'y'}); - if ($col == 0) { + if ($col == 0 && $row =~ /^\d+$/) { invbool(\$urpm->{media}[$row]{ignore}); my $pix = $pixmaps{$urpm->{media}[$row]{ignore} ? 'unselected' : 'selected'}; $clist->set_pixmap($row, 0, $pix->[0], $pix->[1]); -- cgit v1.2.1