summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakconnect
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-31 05:36:08 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-31 05:36:08 +0000
commit4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68 (patch)
tree768cb8248726b3e32c401ee82fd3141285582b5a /perl-install/standalone/drakconnect
parentafc07ead8ccd8d78bfeb76853b2caa47f20556a3 (diff)
downloaddrakx-backup-do-not-use-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar
drakx-backup-do-not-use-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.gz
drakx-backup-do-not-use-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.bz2
drakx-backup-do-not-use-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.tar.xz
drakx-backup-do-not-use-4b04c0492f50d124c9c7f6e91d8b0f5c9f6e5d68.zip
(build_notebook) fix crashes (#11100)
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-xperl-install/standalone/drakconnect11
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);
}