aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-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];