diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-31 05:36:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-31 05:36:08 +0000 |
commit | 4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68 (patch) | |
tree | 768cb8248726b3e32c401ee82fd3141285582b5a | |
parent | afc07ead8ccd8d78bfeb76853b2caa47f20556a3 (diff) | |
download | drakx-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar drakx-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.gz drakx-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.bz2 drakx-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.xz drakx-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.zip |
(build_notebook) fix crashes (#11100)
-rwxr-xr-x | perl-install/standalone/drakconnect | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index 321dd1110..0301722bf 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -582,7 +582,16 @@ sub build_notebook { ); } - $gui->{intf}{$_}->set_text($intf->{$_}) foreach keys %{$gui->{intf}}; + foreach (keys %{$gui->{intf}}) { + next if ref($gui->{intf}{$_}) ne 'Gtk2::ComboBox'; + # skip unset fields: + next if !$intf->{$_}; + # special case b/c of translation: + next if member($_, qw(BOOTPROTO )); + warn qq(processing "$_"\n); + $gui->{intf}{$_}->set_text($intf->{$_}); + } + $gui->{notebook} = Gtk2::Notebook->new; populate_notebook($gui->{notebook}, $gui); } |