From b41c49beadd672f4e16fd7ce37070ed8ff2a39d5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 13 May 2015 07:59:28 -0400 Subject: prevent a crash (mga#15919) --- perl-install/fs/partitioning_wizard.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/fs/partitioning_wizard.pm') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index aa77acf89..f79b72718 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -564,7 +564,9 @@ sub main { display_choices($o, $contentbox, $mainw, %solutions); $combobox->signal_connect("changed", sub { - $mainw->{kind} = $kinds[$combobox->get_active]; + my $curr = $kinds[$combobox->get_active]; + return if !$curr; + $mainw->{kind} = $curr; my %solutions = partitionWizardSolutions($o, $all_hds, $fstab, $manual_fstab, $partitions, $partitioning_flags, $skip_mtab, diskdrake::hd_gtk::kind2hd($mainw->{kind})); delete $solutions{diskdrake} if $b_nodiskdrake; display_choices($o, $contentbox, $mainw, %solutions); -- cgit v1.2.1