aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-13 10:29:25 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-13 10:29:25 +0200
commit23b695d17226a34f8e11c2edcc3e2c4e1ee6e956 (patch)
tree42b00d9c2eb87153aa9d983591f78d98ea15ec0a
parentedb6ba4c5b885a02d798dd7b2b1a0ba9f9120eaa (diff)
downloadmanatools-23b695d17226a34f8e11c2edcc3e2c4e1ee6e956.tar
manatools-23b695d17226a34f8e11c2edcc3e2c4e1ee6e956.tar.gz
manatools-23b695d17226a34f8e11c2edcc3e2c4e1ee6e956.tar.bz2
manatools-23b695d17226a34f8e11c2edcc3e2c4e1ee6e956.tar.xz
manatools-23b695d17226a34f8e11c2edcc3e2c4e1ee6e956.zip
fixed double declaration
-rw-r--r--lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
index 12ac4b10..68be1ef1 100644
--- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
+++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
@@ -362,16 +362,16 @@ sub options_callback() {
my $verify_rpm_value = $urpm->{global_config}{'verify-rpm'};
my $itemColl = new yui::YItemCollection;
- my $counter = 0;
+ my $cnt = 0;
foreach my $elem (@verif) {
my $it = new yui::YItem($elem, 0);
- if ($counter == $verify_rpm_value) {
+ if ($cnt == $verify_rpm_value) {
$it->setSelected(1);
}
$itemColl->push($it);
$DB::single = 1;
$it->DISOWN();
- $counter++;
+ $cnt++;
}
$verify_rpm->addItems($itemColl);
@@ -409,16 +409,16 @@ sub options_callback() {
my $xml_info_policy_value = $urpm->{global_config}{'xml-info'};
$itemColl = new yui::YItemCollection;
- my $counter = 0;
+ $cnt = 0;
foreach my $elem (@xml_info_policiesL) {
my $it = new yui::YItem($elem, 0);
- if ($xml_info_policy_value && $xml_info_policy_value eq @xml_info_policies[$counter]) {
+ if ($xml_info_policy_value && $xml_info_policy_value eq $xml_info_policies[$cnt]) {
$it->setSelected(1);
}
$itemColl->push($it);
$DB::single = 1;
$it->DISOWN();
- $counter++;
+ $cnt++;
}
$xml_info_policy->addItems($itemColl);
@@ -1501,7 +1501,6 @@ sub mainwindow() {
}
elsif ($menuLabel eq $optionsMenu{ global }->label()) {
options_callback();
- # TODO verify if readMedia() is necessary in case of changes
}
}
elsif ($eventType == $yui::YEvent::WidgetEvent) {