summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-10-31 18:51:28 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-10-31 18:51:28 +0000
commit39c2a672caa7c1989d8d98fcd6790622b5099f00 (patch)
tree69550f7dd1dba10f488ad81fd5686273667e3217
parent363438142451c463e616f07ad911e56da1c17272 (diff)
downloaddrakx-backup-do-not-use-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar
drakx-backup-do-not-use-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.gz
drakx-backup-do-not-use-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.bz2
drakx-backup-do-not-use-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.xz
drakx-backup-do-not-use-39c2a672caa7c1989d8d98fcd6790622b5099f00.zip
workaround empty fields when advanced_state is enabled since the
beginning
-rw-r--r--perl-install/interactive/gtk.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index f79ee081b..b588094f0 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -597,13 +597,15 @@ sub ask_fromW {
($advanced) = @_;
$advanced ? $advanced_pack->show : $advanced_pack->hide;
};
+ my $first_time = 1;
my $set_advanced = sub {
($advanced) = @_;
$set_default_size->() if $advanced;
- $update->($common->{callbacks}{advanced}) if $advanced;
+ $update->($common->{callbacks}{advanced}) if $advanced & !$first_time;
$set_advanced_raw->($advanced);
@widgets = (@widgets_always, if_($advanced, @widgets_advanced));
$mainw->sync; #- for $set_all below (mainly for the set of clist)
+ $first_time = 0 if $first_time;
$set_all->(); #- must be done when showing advanced lists (to center selected value)
};
my $advanced_button = [ $common->{advanced_label},