summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-13 07:59:28 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-12-25 10:33:21 +0100
commitb41c49beadd672f4e16fd7ce37070ed8ff2a39d5 (patch)
tree7a8befb6af008bf8b924cdfcd75e11cea5d776ec
parente3fd08fa7700358f9220dee5bdab66b8b6deda12 (diff)
downloaddrakx-b41c49beadd672f4e16fd7ce37070ed8ff2a39d5.tar
drakx-b41c49beadd672f4e16fd7ce37070ed8ff2a39d5.tar.gz
drakx-b41c49beadd672f4e16fd7ce37070ed8ff2a39d5.tar.bz2
drakx-b41c49beadd672f4e16fd7ce37070ed8ff2a39d5.tar.xz
drakx-b41c49beadd672f4e16fd7ce37070ed8ff2a39d5.zip
prevent a crash (mga#15919)
-rw-r--r--perl-install/fs/partitioning_wizard.pm4
1 files changed, 3 insertions, 1 deletions
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);