diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-07-22 23:21:05 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-07-22 23:21:05 +0200 |
commit | c628669b694186ceb70baa9da8fc84590ea01901 (patch) | |
tree | 8b1b246e2fa359b99a556fd840131c1c4675024d | |
parent | 281c3c643979ba36689653026975be338a3e3aee (diff) | |
download | colin-keep-c628669b694186ceb70baa9da8fc84590ea01901.tar colin-keep-c628669b694186ceb70baa9da8fc84590ea01901.tar.gz colin-keep-c628669b694186ceb70baa9da8fc84590ea01901.tar.bz2 colin-keep-c628669b694186ceb70baa9da8fc84590ea01901.tar.xz colin-keep-c628669b694186ceb70baa9da8fc84590ea01901.zip |
Fixed row selection in the case of update check changing
-rw-r--r-- | lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm | 12 |
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 dc30806..f7b6b27 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) { |