diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-06 10:55:29 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-06 10:55:29 +0100 |
commit | 4668382819f71dc7289ed9c01498adce4c192c75 (patch) | |
tree | 51f628873d769911eb49543763470823810d4324 | |
parent | fef37eaf70239fb65403cd16a8c1b5bd748c0906 (diff) | |
download | rpmdrake-4668382819f71dc7289ed9c01498adce4c192c75.tar rpmdrake-4668382819f71dc7289ed9c01498adce4c192c75.tar.gz rpmdrake-4668382819f71dc7289ed9c01498adce4c192c75.tar.bz2 rpmdrake-4668382819f71dc7289ed9c01498adce4c192c75.tar.xz rpmdrake-4668382819f71dc7289ed9c01498adce4c192c75.zip |
adapt to Gtk3's get_selected_rows() returning an array ref (mga#11895)
thus fixing a crash when deleting media (mga#11895)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -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 { |