aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-12-13 15:50:12 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-13 15:50:12 +0100
commit7edfd58554b3fe879802416071e774ce068070ce (patch)
tree282b44752164e3d8b150861b0ad3fac884808fc7
parentc7a2957c9b83687701c279d3a09c9556491d0826 (diff)
downloadrpmdrake-7edfd58554b3fe879802416071e774ce068070ce.tar
rpmdrake-7edfd58554b3fe879802416071e774ce068070ce.tar.gz
rpmdrake-7edfd58554b3fe879802416071e774ce068070ce.tar.bz2
rpmdrake-7edfd58554b3fe879802416071e774ce068070ce.tar.xz
rpmdrake-7edfd58554b3fe879802416071e774ce068070ce.zip
fix crashing when selecting last medium
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/edit_urpm_sources.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f843d63f..a877e20d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- edit-urpm-sources:
o fix edit button being unsensitive (mga#11961)
+ o fix crashing when selecting last medium
Version 6.3 - 6 December 2013, Thierry Vignaud
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 577a72b1..5ae33ab5 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -1049,7 +1049,7 @@ sub mainwindow() {
$curr_path->next;
my $next_item = $model->get_iter($curr_path);
- $dw_button->set_sensitive($next_item); # && !$model->get($next_item, 0)
+ $dw_button->set_sensitive($next_item || 0); # && !$model->get($next_item, 0)
});
$list_tv->set_rules_hint(1);