aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-19 22:22:39 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-19 22:22:39 +0200
commitaec3aa70b297f76cbd003f0c63f43c2b158c2051 (patch)
tree022cbfe5eea3f2cd6c4571a80beb0f124fe2c730 /lib/AdminPanel
parent0107710781997cd9899763e395ed1de2ba949e5c (diff)
downloadmanatools-aec3aa70b297f76cbd003f0c63f43c2b158c2051.tar
manatools-aec3aa70b297f76cbd003f0c63f43c2b158c2051.tar.gz
manatools-aec3aa70b297f76cbd003f0c63f43c2b158c2051.tar.bz2
manatools-aec3aa70b297f76cbd003f0c63f43c2b158c2051.tar.xz
manatools-aec3aa70b297f76cbd003f0c63f43c2b158c2051.zip
added a list refresh if a mirror is added
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
index 1403b6f7..9b9382c1 100644
--- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
+++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
@@ -148,7 +148,7 @@ Please check that your network is currently running.\n
Is it ok to continue?", $distro),
transient => $::main_window,
) or return 0;
- ref $mirror or return;
+ ref $mirror or return 0;
my $wait = wait_msg(N("Please wait, adding media..."));
add_distrib_update_media($urpm, $mirror, if_(!$want_base_distro, only_updates => 1));
$offered_to_add_sources->[0] = 1;
@@ -1570,7 +1570,18 @@ sub mainwindow() {
update_callback();
}
elsif ($menuLabel eq $fileMenu{ add_media }->label()) {
- easy_add_callback_with_mirror();
+ if (easy_add_callback_with_mirror()) {
+ yui::YUI::app()->busyCursor();
+ $dialog->startMultipleChanges();
+
+ $mirrorTbl->deleteAllItems();
+ my $itemCollection = readMedia();
+ $mirrorTbl->addItems($itemCollection);
+
+ $dialog->recalcLayout();
+ $dialog->doneMultipleChanges();
+ yui::YUI::app()->normalCursor();
+ }
}
elsif ($menuLabel eq $fileMenu{ custom }->label()) {
if (add_callback()) {