aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-27 13:25:27 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-27 13:25:27 +0000
commit4ef38cb8091231692ec3f80c1646f56d98d4414b (patch)
tree394ef04173a74cb11c69632876387a703219ae4f
parentb656d2fbccc9052d82d5012abca54bf1797bbdc3 (diff)
downloadrpmdrake-4ef38cb8091231692ec3f80c1646f56d98d4414b.tar
rpmdrake-4ef38cb8091231692ec3f80c1646f56d98d4414b.tar.gz
rpmdrake-4ef38cb8091231692ec3f80c1646f56d98d4414b.tar.bz2
rpmdrake-4ef38cb8091231692ec3f80c1646f56d98d4414b.tar.xz
rpmdrake-4ef38cb8091231692ec3f80c1646f56d98d4414b.zip
when canceling removal of a medium, don't reset the selection
-rwxr-xr-xedit-urpm-sources.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index eb887d1e..b2610d73 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -371,6 +371,7 @@ sub remove_callback {
my $wait = wait_msg_(N("Please wait, removing medium..."));
urpm::media::remove_media($urpm, [ $urpm->{media}[$row] ]);
remove_wait_msg($wait);
+ return 1
}
sub renum_media ($$$) {
@@ -988,7 +989,7 @@ sub mainwindow {
Gtk2::VBox->new(0, 5),
gtksignal_connect(
$remove = Gtk2::Button->new(but(N("Remove"))),
- clicked => sub { remove_callback(); $reread_media->() },
+ clicked => sub { remove_callback() and $reread_media->() },
),
gtksignal_connect(
$edit = Gtk2::Button->new(but(N("Edit..."))),