diff options
-rw-r--r-- | lib/ManaTools/Shared/GUI/Dialog.pm | 4 |
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; }); |