diff options
Diffstat (limited to 'lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm')
-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 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) { |