aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-17 15:45:16 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-17 15:45:16 +0000
commitab9bb9168f39bfa06f1441eedddac3eed305d501 (patch)
treec44918433fe113712509e6691eac4cbf95a464be
parentd06749139b6af5791c56616d3c063ec4eee94753 (diff)
downloadrpmdrake-ab9bb9168f39bfa06f1441eedddac3eed305d501.tar
rpmdrake-ab9bb9168f39bfa06f1441eedddac3eed305d501.tar.gz
rpmdrake-ab9bb9168f39bfa06f1441eedddac3eed305d501.tar.bz2
rpmdrake-ab9bb9168f39bfa06f1441eedddac3eed305d501.tar.xz
rpmdrake-ab9bb9168f39bfa06f1441eedddac3eed305d501.zip
kill unused $default_radio variable
-rwxr-xr-xrpmdrake6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index 2d0cbbcf..b80a063c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -338,7 +338,7 @@ sub run_treeview_dialog {
$options->{state}{splited} = 1;
#$options->{state}{flat} = 1;
- my $default_radio = $options->{tree_mode} = $default_list_mode;
+ $options->{tree_mode} = $default_list_mode;
my $is_backports = get_inactive_backport_media(fast_open_urpmi_db());
@@ -390,7 +390,7 @@ sub run_treeview_dialog {
qw(all meta_pkgs gui_pkgs all_updates security bugfix normal),
if_($is_backports, 'backports')
],
- format => sub { $views{$_[0]} }, text => $views{$default_radio},
+ format => sub { $views{$_[0]} }, text => $views{$default_list_mode},
tip => N("View"),
changed => sub {
my $val = $_[0]->get_text;
@@ -418,7 +418,7 @@ sub run_treeview_dialog {
}
);
- $options->{tree_submode} ||= $default_radio;
+ $options->{tree_submode} ||= $default_list_mode;
$options->{tree_subflat} ||= $options->{state}{flat};