aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-26 11:13:59 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-26 11:13:59 +0000
commit5420b4c3e1e878b2591d3206d43330e40b8b7601 (patch)
tree635764c2d7cd74341ee50a0e5cbfa4f6186e5074
parentd26ba49dac28c997f9283a7facb99bff549d65a1 (diff)
downloadrpmdrake-5420b4c3e1e878b2591d3206d43330e40b8b7601.tar
rpmdrake-5420b4c3e1e878b2591d3206d43330e40b8b7601.tar.gz
rpmdrake-5420b4c3e1e878b2591d3206d43330e40b8b7601.tar.bz2
rpmdrake-5420b4c3e1e878b2591d3206d43330e40b8b7601.tar.xz
rpmdrake-5420b4c3e1e878b2591d3206d43330e40b8b7601.zip
(add_nodes) clear caches when emptying package list model (thus fixing gtk+ warnings)
-rw-r--r--Rpmdrake/gui.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 8d82f42a..ed1e227f 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -354,6 +354,7 @@ sub ask_browse_tree_given_widgets_for_rpmdrake {
};
$common->{add_nodes} = sub {
my (@nodes) = @_;
+ $common->{clear_all_caches}->();
$w->{detail_list_model}->clear;
$w->{detail_list}->scroll_to_point(0, 0);
add_node($_->[0], $_->[1], $_->[2]) foreach @nodes;