diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-31 18:50:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-31 18:50:30 +0000 |
commit | 16aeec9a73dab5fe22227ddde5aa31f6aa40532a (patch) | |
tree | 0312824d2a1ce14181e2638b8f8ed062eac3dfc8 | |
parent | 3782c0363f779072e73c4440862cd1ca563027bb (diff) | |
download | drakx-16aeec9a73dab5fe22227ddde5aa31f6aa40532a.tar drakx-16aeec9a73dab5fe22227ddde5aa31f6aa40532a.tar.gz drakx-16aeec9a73dab5fe22227ddde5aa31f6aa40532a.tar.bz2 drakx-16aeec9a73dab5fe22227ddde5aa31f6aa40532a.tar.xz drakx-16aeec9a73dab5fe22227ddde5aa31f6aa40532a.zip |
workaround empty fields when advanced_state is enabled since the
beginning
-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}, |