From 639404f340e1c6be56b1de068955fa9d4b110fd4 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Sat, 29 Aug 2015 18:55:48 +0200 Subject: changed call order, seems that matter for yui-qt implementation --- lib/ManaTools/Shared/GUI/Dialog.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ManaTools/Shared/GUI/Dialog.pm b/lib/ManaTools/Shared/GUI/Dialog.pm index 210dd6f5..7e91eef8 100644 --- a/lib/ManaTools/Shared/GUI/Dialog.pm +++ b/lib/ManaTools/Shared/GUI/Dialog.pm @@ -389,12 +389,12 @@ sub call { $vbox = $factory->createVBox($ydialog); $layoutstart = $factory->createHBox($vbox); } + ## if layout returns a YWidget, we can define buttons on it + $self->addButtons($vbox) if defined($vbox); ## build the whole layout my $layout = $self->layout->($self, $layoutstart); - ## if layout returns a YWidget, we can define buttons on it - $self->addButtons($vbox) if defined($vbox); ## add a cancelEvent ManaTools::Shared::GUI::Event->new(name => 'cancelEvent', eventHandler => $self, eventType => $yui::YEvent::CancelEvent, event => sub { return 0; }); -- cgit v1.2.1