summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-12 14:47:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-12 14:47:13 +0000
commitd41c3387fb7ff4c9d75e616fa1bf0dadf42879cf (patch)
treee4f60492ec2fdbd53c90f86fadce0ae3cd0c69d9
parent3b4d0d54a1d8b97c904c9bff12e3ce2eecfa3999 (diff)
downloaddrakx-backup-do-not-use-d41c3387fb7ff4c9d75e616fa1bf0dadf42879cf.tar
drakx-backup-do-not-use-d41c3387fb7ff4c9d75e616fa1bf0dadf42879cf.tar.gz
drakx-backup-do-not-use-d41c3387fb7ff4c9d75e616fa1bf0dadf42879cf.tar.bz2
drakx-backup-do-not-use-d41c3387fb7ff4c9d75e616fa1bf0dadf42879cf.tar.xz
drakx-backup-do-not-use-d41c3387fb7ff4c9d75e616fa1bf0dadf42879cf.zip
don't set pop_it when the window is hidden
-rw-r--r--perl-install/ugtk2.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 3ddf0b56d..5494e0f8e 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -739,7 +739,10 @@ sub new {
$o->{rwindow}->set_transient_for($o->{transient}) if $o->{transient};
- $o->{pop_it} ||= $pop_it || $::WizardTable && listlength($::WizardTable->get_children) > ($::isInstall ? 0 : 1);
+ $o->{pop_it} ||= $pop_it || $::WizardTable && do {
+ my @l = $::WizardTable->get_children;
+ @l > ($::isInstall ? 1 : 2) || @l && $l[-1]->visible;
+ };
if ($::isWizard && !$o->{pop_it}) {
$o->{isWizard} = 1;