aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-19 12:15:09 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-19 12:15:09 +0000
commita151c283ee8de07d853166d2ae481779a66f3643 (patch)
tree915bc7fd26a79b23655265e8729518abe11e3711
parent9924d770738293ede2a71a80da67978d1c4bd63c (diff)
downloadrpmdrake-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-xedit-urpm-sources.pl2
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]);