aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-30 02:08:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-30 02:08:48 +0000
commit0e15092c7a6cda12203a1c45df0f319835f08160 (patch)
tree9d8724369e38c4d4eed97318695d8cad39c135bb /MandrivaUpdate
parente036fed2c68a4ab85fe8d446e4856bada3a5ca8a (diff)
downloadrpmdrake-0e15092c7a6cda12203a1c45df0f319835f08160.tar
rpmdrake-0e15092c7a6cda12203a1c45df0f319835f08160.tar.gz
rpmdrake-0e15092c7a6cda12203a1c45df0f319835f08160.tar.bz2
rpmdrake-0e15092c7a6cda12203a1c45df0f319835f08160.tar.xz
rpmdrake-0e15092c7a6cda12203a1c45df0f319835f08160.zip
workaround crashing when tree selection wasn't realized yet (#41010)
in MandrivaUpdate too
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate4
1 files changed, 4 insertions, 0 deletions
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