aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-04-24 21:28:32 +0200
committerMaarten Vanraes <alien@mageia.org>2016-04-24 23:23:03 +0200
commita8b81d0708e811249bc7a4e915904429233c40aa (patch)
tree7b0f54989481346323dd43cab2339b7ca7431c16 /lib
parentcd375baf24bade48b3444a1e29df886f7f777ca4 (diff)
downloadmanatools-a8b81d0708e811249bc7a4e915904429233c40aa.tar
manatools-a8b81d0708e811249bc7a4e915904429233c40aa.tar.gz
manatools-a8b81d0708e811249bc7a4e915904429233c40aa.tar.bz2
manatools-a8b81d0708e811249bc7a4e915904429233c40aa.tar.xz
manatools-a8b81d0708e811249bc7a4e915904429233c40aa.zip
ActionList: fix crash
Diffstat (limited to 'lib')
-rw-r--r--lib/ManaTools/Shared/GUI/ActionList.pm8
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