aboutsummaryrefslogtreecommitdiffstats
path: root/MageiaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-01-16 06:29:20 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-01-16 06:29:20 +0100
commit15236a33de8cef706cb1a3710577fc1593c7487e (patch)
tree432759391d109fb7248ad2ca983f23c9251b9488 /MageiaUpdate
parent8e4459df9f60b1a924f33e24fd67366027a21f43 (diff)
downloadrpmdrake-15236a33de8cef706cb1a3710577fc1593c7487e.tar
rpmdrake-15236a33de8cef706cb1a3710577fc1593c7487e.tar.gz
rpmdrake-15236a33de8cef706cb1a3710577fc1593c7487e.tar.bz2
rpmdrake-15236a33de8cef706cb1a3710577fc1593c7487e.tar.xz
rpmdrake-15236a33de8cef706cb1a3710577fc1593c7487e.zip
fix slow refresh of pkgs list (mga#12300)
Diffstat (limited to 'MageiaUpdate')
-rwxr-xr-xMageiaUpdate7
1 files changed, 7 insertions, 0 deletions
diff --git a/MageiaUpdate b/MageiaUpdate
index ae18cc4c..4068ea26 100755
--- a/MageiaUpdate
+++ b/MageiaUpdate
@@ -75,6 +75,10 @@ sub refresh_packages_list {
# select packages to update:
my @requested = sort grep { $pkgs->{$_}{pkg} } @filtered_pkgs;
+ $list->freeze_child_notify;
+ my $model = $list->get_model;
+ $list->set_model;
+
# don't select packages in skip list:
if (!$initialized) {
undef $pkgs->{$_}{selected} foreach @requested;
@@ -103,6 +107,9 @@ sub refresh_packages_list {
no available update for the packages installed on your computer,
or you already installed all of them."))) if !@{$list->{data}};
$button->set_sensitive(scalar(@{$list->{data}}));
+
+ $list->set_model($model);
+ $list->thaw_child_notify;
}
sub toggle {