From b83d78758ad2a42698695f860fd983bce3c10b4c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 21 Feb 2008 14:28:46 +0000 Subject: (mainwindow) explain --- Rpmdrake/edit_urpm_sources.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Rpmdrake') 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]; -- cgit v1.2.1