aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-06-24 19:13:38 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-06-24 19:20:10 +0200
commit591a5deb5992efb4829481803c0874724bea1859 (patch)
treeb2ab81ed9cb17a9ae5dacd38148855f615bd1b9b
parentae2c25a96da3c90e24815dcd090c220685955a20 (diff)
downloadrpmdrake-591a5deb5992efb4829481803c0874724bea1859.tar
rpmdrake-591a5deb5992efb4829481803c0874724bea1859.tar.gz
rpmdrake-591a5deb5992efb4829481803c0874724bea1859.tar.bz2
rpmdrake-591a5deb5992efb4829481803c0874724bea1859.tar.xz
rpmdrake-591a5deb5992efb4829481803c0874724bea1859.zip
fix down arrow button not working (mga#13572)
Conflicts: NEWS
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/edit_urpm_sources.pm4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 47d6169d..706c1bf5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- edit-urpm-sources:
+ o fix down arrow button not working (mga#13572)
+
Version 6.10 - 22 January 2014, Colin Guthrie
- do not exec pkexec but run it so it has a parent process to fix double fork
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');
}