summaryrefslogtreecommitdiffstats
path: root/gurpm/RPMProgressDialog.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-21 22:52:45 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-21 22:52:45 +0000
commitdcdf28f560bda2f96936b8ed387b65dc364e12ef (patch)
treec3aae512652bd37ab268adb9f7141b3161e9f01e /gurpm/RPMProgressDialog.pm
parent968cebcee69fea76bc8a2b65d389af59c53bd6a9 (diff)
downloadurpmi-dcdf28f560bda2f96936b8ed387b65dc364e12ef.tar
urpmi-dcdf28f560bda2f96936b8ed387b65dc364e12ef.tar.gz
urpmi-dcdf28f560bda2f96936b8ed387b65dc364e12ef.tar.bz2
urpmi-dcdf28f560bda2f96936b8ed387b65dc364e12ef.tar.xz
urpmi-dcdf28f560bda2f96936b8ed387b65dc364e12ef.zip
enable to cancel downloads
Diffstat (limited to 'gurpm/RPMProgressDialog.pm')
-rw-r--r--gurpm/RPMProgressDialog.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gurpm/RPMProgressDialog.pm b/gurpm/RPMProgressDialog.pm
index 357d4f71..642f3a33 100644
--- a/gurpm/RPMProgressDialog.pm
+++ b/gurpm/RPMProgressDialog.pm
@@ -331,6 +331,7 @@ sub callback_download {
&urpm::download::progress_text($mode, $percent, $total, $eta, $speed));
}
if ($mode eq 'start') {
+ $mainw->validate_cancel(N("Cancel"), \&callback_cancel);
$download_nb++;
$mainw->set_progressbar(0);
select(undef, undef, undef, 0.1); #- hackish