aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index af0e2883..46ad56ab 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -573,8 +573,8 @@ sub mainwindow {
$reorder_ok or return;
my @media;
$model->foreach(sub {
- my (undef, $path) = @_;
- my $name = $model->get($path, 1);
+ my (undef, undef, $iter) = @_;
+ my $name = $model->get($iter, 1);
push @media, find { $_->{name} eq $name } @{$urpm->{media}};
0;
}, undef);