aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-22 23:21:05 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-22 23:21:05 +0200
commitc628669b694186ceb70baa9da8fc84590ea01901 (patch)
tree8b1b246e2fa359b99a556fd840131c1c4675024d
parent281c3c643979ba36689653026975be338a3e3aee (diff)
downloadmanatools-c628669b694186ceb70baa9da8fc84590ea01901.tar
manatools-c628669b694186ceb70baa9da8fc84590ea01901.tar.gz
manatools-c628669b694186ceb70baa9da8fc84590ea01901.tar.bz2
manatools-c628669b694186ceb70baa9da8fc84590ea01901.tar.xz
manatools-c628669b694186ceb70baa9da8fc84590ea01901.zip
Fixed row selection in the case of update check changing
-rw-r--r--lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
index dc308067..f7b6b272 100644
--- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
+++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
@@ -1737,10 +1737,20 @@ sub mainwindow() {
elsif ($widget == $update) {
my $item = $mirrorTbl->selectedItem();
if ($item) {
+ yui::YUI::app()->busyCursor();
my $row = $item->index();
$urpm->{media}[$row]{update} = !$urpm->{media}[$row]{update} || undef;
urpm::media::write_config($urpm);
- $changed = 1;
+ yui::YUI::ui()->blockEvents();
+ $dialog->startMultipleChanges();
+ $mirrorTbl->deleteAllItems();
+ my $itemCollection = readMedia();
+ selectRow($itemCollection, $row);
+ $mirrorTbl->addItems($itemCollection);
+ $dialog->recalcLayout();
+ $dialog->doneMultipleChanges();
+ yui::YUI::ui()->unblockEvents();
+ yui::YUI::app()->normalCursor();
}
}
elsif ($widget == $enabled) {