aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/GUI/ExtTab.pm
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-01-09 16:59:28 +0100
committerMaarten Vanraes <alien@mageia.org>2016-01-09 16:59:28 +0100
commit5257d946c84c1ea5d4b77cf904aa21e4a427e904 (patch)
tree63da9cb585d77ba81ef29edeff5fe8a98cfa275f /lib/ManaTools/Shared/GUI/ExtTab.pm
parent3f9f4ab039bc7b3892a5683143ace4e183211c26 (diff)
downloadmanatools-5257d946c84c1ea5d4b77cf904aa21e4a427e904.tar
manatools-5257d946c84c1ea5d4b77cf904aa21e4a427e904.tar.gz
manatools-5257d946c84c1ea5d4b77cf904aa21e4a427e904.tar.bz2
manatools-5257d946c84c1ea5d4b77cf904aa21e4a427e904.tar.xz
manatools-5257d946c84c1ea5d4b77cf904aa21e4a427e904.zip
add parent link to EventHandlerRole move parentDialog
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();