diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-19 12:15:09 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-19 12:15:09 +0000 |
commit | a151c283ee8de07d853166d2ae481779a66f3643 (patch) | |
tree | 915bc7fd26a79b23655265e8729518abe11e3711 | |
parent | 9924d770738293ede2a71a80da67978d1c4bd63c (diff) | |
download | rpmdrake-a151c283ee8de07d853166d2ae481779a66f3643.tar rpmdrake-a151c283ee8de07d853166d2ae481779a66f3643.tar.gz rpmdrake-a151c283ee8de07d853166d2ae481779a66f3643.tar.bz2 rpmdrake-a151c283ee8de07d853166d2ae481779a66f3643.tar.xz rpmdrake-a151c283ee8de07d853166d2ae481779a66f3643.zip |
toggle the ignore flag only when the button press was really done
in an existing col/row
-rwxr-xr-x | edit-urpm-sources.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |