From 4a68219789694ea685b189d2a2d2975c5592a3d2 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Tue, 2 Dec 2014 23:39:30 +0100 Subject: Fix package selection --- lib/AdminPanel/Rpmdragora/gui.pm | 6 ++++-- lib/AdminPanel/Rpmdragora/gurpm.pm | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/AdminPanel') diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm index 92851ce..cd6ba4b 100644 --- a/lib/AdminPanel/Rpmdragora/gui.pm +++ b/lib/AdminPanel/Rpmdragora/gui.pm @@ -938,8 +938,10 @@ sub fast_toggle { interactive_msg($loc->N("Warning"), '' . $loc->N("Rpmdragora or one of its priority dependencies needs to be updated first. Rpmdragora will then restart.") . '' . "\n\n"); } # toggle_nodes($w->{tree}->window, $w->{detail_list_model}, \&set_leaf_state, $w->{detail_list_model}->get($iter, $pkg_columns{state}), - my $val = $pkgs->{$name}{selected}; - my $old_status = $val ? 'to_install' : 'to_update'; + + my $old_status = node_state($name); + + #$DB::single = 1; # my $old_state; # if($item->checked()){ diff --git a/lib/AdminPanel/Rpmdragora/gurpm.pm b/lib/AdminPanel/Rpmdragora/gurpm.pm index b5eb1b2..0c7dd6f 100644 --- a/lib/AdminPanel/Rpmdragora/gurpm.pm +++ b/lib/AdminPanel/Rpmdragora/gurpm.pm @@ -78,6 +78,7 @@ sub flush { sub label { my ($self, $label) = @_; + $self->{mainw}->startMultipleChanges(); $self->{label}->setValue($label) if $label; #select(undef, undef, undef, 0.1); #- hackish :-( $self->flush(); -- cgit v1.2.1