aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-02 23:39:30 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-02 23:39:30 +0100
commit4a68219789694ea685b189d2a2d2975c5592a3d2 (patch)
tree86379e074a874c730a4e761e3447af3e0b1af13a /lib/AdminPanel
parent6c66db7463a625be1a0b9e3586a100105e5f95ae (diff)
downloadcolin-keep-4a68219789694ea685b189d2a2d2975c5592a3d2.tar
colin-keep-4a68219789694ea685b189d2a2d2975c5592a3d2.tar.gz
colin-keep-4a68219789694ea685b189d2a2d2975c5592a3d2.tar.bz2
colin-keep-4a68219789694ea685b189d2a2d2975c5592a3d2.tar.xz
colin-keep-4a68219789694ea685b189d2a2d2975c5592a3d2.zip
Fix package selection
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/Rpmdragora/gui.pm6
-rw-r--r--lib/AdminPanel/Rpmdragora/gurpm.pm1
2 files changed, 5 insertions, 2 deletions
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"), '<b>' . $loc->N("Rpmdragora or one of its priority dependencies needs to be updated first. Rpmdragora will then restart.") . '</b>' . "\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();