aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-30 13:09:47 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-30 13:09:47 +0000
commitb2ab507ac93ba93fc4fda9cb53acb90a44c3601a (patch)
tree01b9ced3323851c464ace76205df0fd4d0042fc0
parentd0388ffc43da9aebdd38079eda6a45d5c31643e2 (diff)
downloadrpmdrake-b2ab507ac93ba93fc4fda9cb53acb90a44c3601a.tar
rpmdrake-b2ab507ac93ba93fc4fda9cb53acb90a44c3601a.tar.gz
rpmdrake-b2ab507ac93ba93fc4fda9cb53acb90a44c3601a.tar.bz2
rpmdrake-b2ab507ac93ba93fc4fda9cb53acb90a44c3601a.tar.xz
rpmdrake-b2ab507ac93ba93fc4fda9cb53acb90a44c3601a.zip
(run_treeview_dialog) fix MandrivaUpdate starting now that we show the main
window before reading urpm db
-rwxr-xr-xrpmdrake9
1 files changed, 4 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index de6550e3..9522704c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1123,11 +1123,6 @@ or you already installed all of them."));
rebuild_tree => sub {},
};
- if (@initial_selection) {
- $options->{initial_selection} = \@initial_selection;
- $pkgs->{$_}{selected} = 0 foreach @initial_selection;
- }
-
$tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::String", "Gtk2::Gdk::Pixbuf");
$tree_model->set_sort_column_id(0, 'ascending');
$tree = Gtk2::TreeView->new_with_model($tree_model);
@@ -1479,6 +1474,10 @@ Do you really want to install all the selected packages?"), yesno => 1)
$w->{rwindow}->show_all;
$pkgs_provider->({}, $default_list_mode); # default mode
+ if (@initial_selection) {
+ $options->{initial_selection} = \@initial_selection;
+ $pkgs->{$_}{selected} = 0 foreach @initial_selection;
+ }
$options->{widgets} = {
w => $w,