From a8b81d0708e811249bc7a4e915904429233c40aa Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Sun, 24 Apr 2016 21:28:32 +0200 Subject: ActionList: fix crash --- lib/ManaTools/Shared/GUI/ActionList.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/ManaTools/Shared') diff --git a/lib/ManaTools/Shared/GUI/ActionList.pm b/lib/ManaTools/Shared/GUI/ActionList.pm index c762335b..77c2b49e 100644 --- a/lib/ManaTools/Shared/GUI/ActionList.pm +++ b/lib/ManaTools/Shared/GUI/ActionList.pm @@ -149,11 +149,13 @@ sub refresh { $button->setStretchable(0, 1); $replacepoint->addWidget($key, $button, sub { my $self = shift; - my $actions = shift; - my $key = shift; + my $yevent = shift; + my $args = shift; + my $actions = shift(@{$args}); + my $key = shift(@{$args}); my @args = @_; return $actions->act($key, @args); - }, $actions, $key); + }, [$actions, $key]); } } # finished -- cgit v1.2.1