aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/GUI/ExtTab.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Shared/GUI/ExtTab.pm')
-rw-r--r--lib/ManaTools/Shared/GUI/ExtTab.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ManaTools/Shared/GUI/ExtTab.pm b/lib/ManaTools/Shared/GUI/ExtTab.pm
index 46acb7f2..863e09b8 100644
--- a/lib/ManaTools/Shared/GUI/ExtTab.pm
+++ b/lib/ManaTools/Shared/GUI/ExtTab.pm
@@ -81,6 +81,7 @@ use utf8;
with 'ManaTools::Shared::GUI::EventRole';
use yui;
+use ManaTools::Shared::GUI::ReplacePoint;
#=============================================================
@@ -195,6 +196,12 @@ sub buildTab {
# create a replacepoint on the tab
$self->{replacepoint} = ManaTools::Shared::GUI::ReplacePoint->new(parentWidget => $tab);
+
+ # parentEventHandler must be set directly, because we don't add the
+ # eventHandler to a parentEventHandler, instead the events are processed
+ # through the Tab's EventRole processEvent function
+ $self->{replacepoint}->parentEventHandler($self->{eventHandler});
+
# don't add any children right away
$self->{replacepoint}->finished();