diff options
author | Matteo Pasotti <matteo@mageia.org> | 2013-01-17 00:11:32 +0000 |
---|---|---|
committer | Matteo Pasotti <matteo@mageia.org> | 2013-01-17 00:11:32 +0000 |
commit | 0ba929780736b50730d4f69bace931d2f9f39c65 (patch) | |
tree | 6d5d2f268742d296edd3042a2e05d7cb6c78d320 | |
parent | 87416ad0683631051338fd62e3db7f23f0169c14 (diff) | |
download | manatools-0ba929780736b50730d4f69bace931d2f9f39c65.tar manatools-0ba929780736b50730d4f69bace931d2f9f39c65.tar.gz manatools-0ba929780736b50730d4f69bace931d2f9f39c65.tar.bz2 manatools-0ba929780736b50730d4f69bace931d2f9f39c65.tar.xz manatools-0ba929780736b50730d4f69bace931d2f9f39c65.zip |
fixed do_search (add_parent calls were called without tree reference)
-rwxr-xr-x | modules/rpmdragora/rpmdragora | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora index 8b1f9d19..fff99ea0 100755 --- a/modules/rpmdragora/rpmdragora +++ b/modules/rpmdragora/rpmdragora @@ -216,6 +216,7 @@ sub do_search($$$$$$$) { #), #); #$searchw->sync; + $searchw->pollEvent(); $searchw->recalcLayout(); $searchw->doneMultipleChanges(); # should probably not account backports packages or find a way to search them: @@ -304,7 +305,7 @@ sub do_search($$$$$$$) { if (@search_results) { @search_results = sort_packages(@search_results); $elems{$results_ok} = [ map { [ $_, $results_ok ] } @search_results ]; - $iter = $options->{add_parent}->($results_ok); + $iter = $options->{add_parent}->($tree, $results_ok); $options->{add_nodes}->(map { [ $_, $results_ok . ($options->{tree_mode} eq 'by_presence' ? '|' . ($pkgs->{$_}{pkg}->flag_installed ? N("Upgradable") : N("Addable")) : ($options->{tree_mode} eq 'by_selection' @@ -312,7 +313,7 @@ sub do_search($$$$$$$) { : '')) ] } @search_results); } else { - $iter = $options->{add_parent}->($results_none); + $iter = $options->{add_parent}->($tree, $results_none); # clear package list: $options->{add_nodes}->(); my $string = $default_list_mode eq 'all' && $filter->[0] eq 'all' ? N("No search results.") : @@ -357,7 +358,7 @@ sub run_treeview_dialog { get_status => sub { N("Selected: %s / Free disk space: %s", formatXiB($size_selected), formatXiB($size_free*1024)); }, - rebuild_tree => sub {}, + rebuild_tree => sub { $tree->rebuildTree(); }, }; my $vbox = $factory->createVBox($my_win); |