From b2f7e8318abf39a6403245dc6c4a9069fb758211 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 24 Jun 2014 19:13:38 +0200 Subject: fix down arrow button not working (mga#13572) --- NEWS | 2 ++ Rpmdrake/edit_urpm_sources.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 817fb259..cb5fd3a4 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ - pkgs list contains only latest updates, not all of them, so filters and backport list have been managed accordingly (fix mga#12766) +- edit-urpm-sources: + o fix down arrow button not working (mga#13572) Version 6.10 - 22 January 2014, Colin Guthrie diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 580800d6..f9322504 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -457,8 +457,8 @@ sub downwards_callback() { @rows == 0 and return; my $model = $list_tv->get_model; my $iter = $model->get_iter_from_string($rows[0]); - my $next = $iter; - $model->iter_next($next) and renum_media($model, $iter, $next); + my $next = $model->get_iter_from_string($rows[0] + 1); + defined $next and renum_media($model, $iter, $next); $list_tv->get_selection->signal_emit('changed'); } -- cgit v1.2.1