summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/partitioning_wizard.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-02-09 13:44:09 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-02-09 13:44:09 +0000
commite5662d24f5e5bad186f9d5e9274bcee4d3536fab (patch)
tree84c9f0014f9286f016a92c51c68ed2cfd17ec6a5 /perl-install/fs/partitioning_wizard.pm
parent4033bfb46ae709751ddd7544a63820526cf0dc68 (diff)
downloaddrakx-e5662d24f5e5bad186f9d5e9274bcee4d3536fab.tar
drakx-e5662d24f5e5bad186f9d5e9274bcee4d3536fab.tar.gz
drakx-e5662d24f5e5bad186f9d5e9274bcee4d3536fab.tar.bz2
drakx-e5662d24f5e5bad186f9d5e9274bcee4d3536fab.tar.xz
drakx-e5662d24f5e5bad186f9d5e9274bcee4d3536fab.zip
partitioning_wizard: fix a crash on empty disk
Diffstat (limited to 'perl-install/fs/partitioning_wizard.pm')
-rw-r--r--perl-install/fs/partitioning_wizard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index b71ea9384..ea9521768 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -396,7 +396,7 @@ sub create_display_box {
gtkset_size_request(Gtk2::Label->new("."), 1, 0));
gtkpack__($display_box, $part_sep);
}
- $display_box->remove($part_sep);
+ $display_box->remove($part_sep) if $part_sep;
unless ($resize || $fill_empty) {
my @types = (N_("Ext2/3/4"), N_("XFS"), N_("Swap"), arch() =~ /sparc/ ? N_("SunOS") : arch() eq "ppc" ? N_("HFS") : N_("Windows"),
N_("Other"), N_("Empty"));