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 /Rpmdrake | |
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)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |