aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-05-05 15:05:45 +0200
committerMaarten Vanraes <alien@mageia.org>2016-05-08 09:57:09 +0200
commit0799537e41448c4a348a22d49b101a7b78928e45 (patch)
tree2ba568e89805309aee9dcfac79f52a7d86d29e9a /lib
parent6afe0e3ed77f5dc9d94c46613e55d05b45c25327 (diff)
downloadmanatools-0799537e41448c4a348a22d49b101a7b78928e45.tar
manatools-0799537e41448c4a348a22d49b101a7b78928e45.tar.gz
manatools-0799537e41448c4a348a22d49b101a7b78928e45.tar.bz2
manatools-0799537e41448c4a348a22d49b101a7b78928e45.tar.xz
manatools-0799537e41448c4a348a22d49b101a7b78928e45.zip
Replacepoint: move parentDialog() calls after eventHandler checking
Diffstat (limited to 'lib')
-rw-r--r--lib/ManaTools/Shared/GUI/ReplacePoint.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ManaTools/Shared/GUI/ReplacePoint.pm b/lib/ManaTools/Shared/GUI/ReplacePoint.pm
index d93836d9..8a2fc7a9 100644
--- a/lib/ManaTools/Shared/GUI/ReplacePoint.pm
+++ b/lib/ManaTools/Shared/GUI/ReplacePoint.pm
@@ -149,14 +149,15 @@ has 'container' => (
#=============================================================
sub buildReplacePoint {
my $self = shift;
- 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);
+ my $dialog = $self->parentDialog();
+ my $factory = $dialog->factory();
+ my $parentWidget = $self->parentWidget();
+
# create the replacepoint
my $replacepoint = $factory->createReplacePoint($parentWidget);