summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/ugtk2.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index a76dd695e..a47b77a06 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -872,9 +872,8 @@ sub new {
$o->{isEmbedded} ||= $::isEmbedded;
$o->{pop_it} ||= $pop_it || !$o->{isWizard} && !$o->{isEmbedded} || $::WizardTable && do {
- my @l = $::WizardTable->get_children;
- pop @l if !$::isInstall && $o->{isWizard}; #- don't take into account the DrawingArea
- any { $_->visible } @l;
+ #- don't take into account the DrawingArea
+ any { !$_->isa('Gtk2::DrawingArea') && $_->visible } $::WizardTable->get_children;
};
if ($o->{pop_it}) {