aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-08-29 18:55:48 +0200
committerAngelo Naselli <anaselli@linux.it>2015-08-29 18:55:48 +0200
commit639404f340e1c6be56b1de068955fa9d4b110fd4 (patch)
tree4d358f3c35b32ab04263403d0b3a5c44bb3a24e6 /lib/ManaTools/Shared
parentec25f158e846eafc1a2a53305b70f88ca3dcb10c (diff)
downloadmanatools-639404f340e1c6be56b1de068955fa9d4b110fd4.tar
manatools-639404f340e1c6be56b1de068955fa9d4b110fd4.tar.gz
manatools-639404f340e1c6be56b1de068955fa9d4b110fd4.tar.bz2
manatools-639404f340e1c6be56b1de068955fa9d4b110fd4.tar.xz
manatools-639404f340e1c6be56b1de068955fa9d4b110fd4.zip
changed call order, seems that matter for yui-qt implementation
Diffstat (limited to 'lib/ManaTools/Shared')
-rw-r--r--lib/ManaTools/Shared/GUI/Dialog.pm4
1 files changed, 2 insertions, 2 deletions
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; });