aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-21 14:28:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-21 14:28:46 +0000
commitb83d78758ad2a42698695f860fd983bce3c10b4c (patch)
treeec20c5c1011e8cb97283f1d66c035496fb2c1f0c /Rpmdrake
parentc8c192ec4cdfe5efacf225714fb2035fc1f954d8 (diff)
downloadrpmdrake-b83d78758ad2a42698695f860fd983bce3c10b4c.tar
rpmdrake-b83d78758ad2a42698695f860fd983bce3c10b4c.tar.gz
rpmdrake-b83d78758ad2a42698695f860fd983bce3c10b4c.tar.bz2
rpmdrake-b83d78758ad2a42698695f860fd983bce3c10b4c.tar.xz
rpmdrake-b83d78758ad2a42698695f860fd983bce3c10b4c.zip
(mainwindow) explain
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index b5d14e98..bef41d0d 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -1001,6 +1001,8 @@ sub mainwindow() {
$remove_button and $remove_button->set_sensitive($#rows != -1);
# we can only edit/move one item at a time:
$_ and $_->set_sensitive(@rows == 1) foreach $up_button, $dw_button, $edit_button;
+
+ # we can only up/down one item if not at begin/end:
return if @rows != 1;
my $curr_path = $rows[0];