diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-31 18:51:28 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-31 18:51:28 +0000 |
commit | 39c2a672caa7c1989d8d98fcd6790622b5099f00 (patch) | |
tree | 69550f7dd1dba10f488ad81fd5686273667e3217 /perl-install | |
parent | 363438142451c463e616f07ad911e56da1c17272 (diff) | |
download | drakx-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar drakx-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.gz drakx-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.bz2 drakx-39c2a672caa7c1989d8d98fcd6790622b5099f00.tar.xz drakx-39c2a672caa7c1989d8d98fcd6790622b5099f00.zip |
workaround empty fields when advanced_state is enabled since the
beginning
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive/gtk.pm | 4 |
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}, |