diff options
author | Maarten Vanraes <alien@mageia.org> | 2016-05-05 15:05:45 +0200 |
---|---|---|
committer | Maarten Vanraes <alien@mageia.org> | 2016-05-08 09:57:09 +0200 |
commit | 0799537e41448c4a348a22d49b101a7b78928e45 (patch) | |
tree | 2ba568e89805309aee9dcfac79f52a7d86d29e9a /lib | |
parent | 6afe0e3ed77f5dc9d94c46613e55d05b45c25327 (diff) | |
download | manatools-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.pm | 7 |
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); |