aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-04-24 21:29:56 +0200
committerMaarten Vanraes <alien@mageia.org>2016-04-24 23:23:20 +0200
commitcb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d (patch)
tree3503fc5c2535473606d2d920da2e08a87fc98acf /lib/ManaTools
parenta8b81d0708e811249bc7a4e915904429233c40aa (diff)
downloadmanatools-cb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d.tar
manatools-cb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d.tar.gz
manatools-cb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d.tar.bz2
manatools-cb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d.tar.xz
manatools-cb5c1fb04b6a80b5af3313bdc679f09cd2ceac7d.zip
Replacepoint: safeguard against undefined eventHandler
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Shared/GUI/ReplacePoint.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ManaTools/Shared/GUI/ReplacePoint.pm b/lib/ManaTools/Shared/GUI/ReplacePoint.pm
index 10b38ff0..d93836d9 100644
--- a/lib/ManaTools/Shared/GUI/ReplacePoint.pm
+++ b/lib/ManaTools/Shared/GUI/ReplacePoint.pm
@@ -152,6 +152,10 @@ sub buildReplacePoint {
my $dialog = $self->parentDialog();
my $factory = $dialog->factory();
my $parentWidget = $self->parentWidget();
+ my $eventHandler = $self->parentEventHandler();
+
+ # safeguard if no eventHandler
+ die("eventHandler is not set when creating replacepoint") if (!defined $eventHandler);
# create the replacepoint
my $replacepoint = $factory->createReplacePoint($parentWidget);