From 7edfd58554b3fe879802416071e774ce068070ce Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 13 Dec 2013 15:50:12 +0100 Subject: fix crashing when selecting last medium --- Rpmdrake/edit_urpm_sources.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake') 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); -- cgit v1.2.1