diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-25 06:52:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-25 06:52:14 +0000 |
commit | 649ff949051e407cd29842addec8ba444bff00e4 (patch) | |
tree | 95593c6ef4e0c45faa422c792f1bc2954ec0e402 /Rpmdrake | |
parent | fd36b92cbdd2ae553b9d1252b98d797aee7d2318 (diff) | |
download | rpmdrake-649ff949051e407cd29842addec8ba444bff00e4.tar rpmdrake-649ff949051e407cd29842addec8ba444bff00e4.tar.gz rpmdrake-649ff949051e407cd29842addec8ba444bff00e4.tar.bz2 rpmdrake-649ff949051e407cd29842addec8ba444bff00e4.tar.xz rpmdrake-649ff949051e407cd29842addec8ba444bff00e4.zip |
(edit_callback) ensure update progress dialog is centered upon main window
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/edit_urpm_sources.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 034cf1ea..e4ab9b2e 100755 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -424,6 +424,7 @@ sub edit_callback() { my $medium = $urpm->{media}[$row]; my $config = urpm::cfg::load_config_raw($urpm->{config}, 1); my ($verbatim_medium) = grep { $medium->{name} eq $_->{name} } @$config; + my $old_main_window = $::main_window; my $w = ugtk2->new(N("Edit a medium"), grab => 1, center => 1, transient => $::main_window); local $::main_window = $w->{real_window}; my ($url_entry, $hdlist_entry, $downloader_entry, $url, $with_hdlist, $downloader); @@ -488,6 +489,7 @@ sub edit_callback() { modified => 1, }); urpm::media::write_config($urpm); + local $::main_window = $old_main_window; update_sources_noninteractive($urpm, [ media => $name ], transient => $::main_window, nolock => 1); } else { urpm::media::remove_selected_media($urpm); |