diff options
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-x | edit-urpm-sources.pl | 3 |
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..."))), |