aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/edit_urpm_sources.pm6
2 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 75153f08..74de043f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- edit-urpm-sources:
+ o fix crashing when deleting media (mga#11895)
+
Version 6.1 - 5 December 2013, Thierry Vignaud
- use introspection for Source too
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 662d061b..7c7fe434 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -87,9 +87,9 @@ sub selrow {
sub selected_rows {
my ($o_list_tv) = @_;
defined $o_list_tv or $o_list_tv = $list_tv;
- my (@rows) = $o_list_tv->get_selection->get_selected_rows;
- return -1 if @rows == 0;
- map { $_->to_string } @rows;
+ my ($rows) = $o_list_tv->get_selection->get_selected_rows;
+ return -1 if @$rows == 0;
+ map { $_->to_string } @$rows;
}
sub remove_row {