From 0e15092c7a6cda12203a1c45df0f319835f08160 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 30 Sep 2008 02:08:48 +0000 Subject: workaround crashing when tree selection wasn't realized yet (#41010) in MandrivaUpdate too --- MandrivaUpdate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MandrivaUpdate b/MandrivaUpdate index e731427d..680bc857 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -248,6 +248,10 @@ sub run_treeview_dialog { $w->{rwindow}->show_all; $w->{rwindow}->set_sensitive(0); + # ensure treeview get realized so that ->get_selection returns something + $list->realize; + gtkflush(); + $filter->[0] = 'all'; # default filter: availlable updates $Rpmdrake::pkg::probe_only_for_updates = 1; # faster startup pkgs_provider({}, 'all_updates', pure_updates => 1); # default mode -- cgit v1.2.1