aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-30 02:09:05 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-30 02:09:05 +0000
commit7d8086b7e7ebc664c576f09b66a1cb04e51e3774 (patch)
tree4969c239d38d3465a666726555c86e67e55352c8
parent146d12a4aa709825665dde89c676b0cefa5f353a (diff)
downloadrpmdrake-7d8086b7e7ebc664c576f09b66a1cb04e51e3774.tar
rpmdrake-7d8086b7e7ebc664c576f09b66a1cb04e51e3774.tar.gz
rpmdrake-7d8086b7e7ebc664c576f09b66a1cb04e51e3774.tar.bz2
rpmdrake-7d8086b7e7ebc664c576f09b66a1cb04e51e3774.tar.xz
rpmdrake-7d8086b7e7ebc664c576f09b66a1cb04e51e3774.zip
workaround crashing when tree selection wasn't realized yet (#41010)
-rwxr-xr-xMandrivaUpdate4
-rw-r--r--NEWS2
-rwxr-xr-xrpmdrake5
3 files changed, 11 insertions, 0 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index b3dc7120..85196d24 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -213,6 +213,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
diff --git a/NEWS b/NEWS
index b7afcfc0..bea49a34 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@
synthesis (#42737)
(meaning package list & metadata are not syncrhonised and that
media need updates)
+ o workaround crashing when tree selection wasn't realized yet
+ (#41010)
Version 4.9.13.4 - 9 September 2008, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index b8abb61b..4154d998 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -669,6 +669,11 @@ sub run_treeview_dialog {
$find_entry->set_text($rpmdrake_options{search}[0]) if $rpmdrake_options{search};
$w->{rwindow}->show_all;
+
+ # ensure treeview get realized so that ->get_selection returns something
+ $detail_list->realize;
+ gtkflush();
+
$w->{rwindow}->set_sensitive(0);
pkgs_provider({}, $default_list_mode); # default mode