diff options
Diffstat (limited to 'lib/ManaTools/Shared')
-rw-r--r-- | lib/ManaTools/Shared/GUI/ActionList.pm | 8 |
1 files changed, 5 insertions, 3 deletions
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 |