aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);