summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/partitioning_wizard.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-14 08:27:07 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-05-14 08:31:15 +0200
commite398b3cd6490c60035da843b37e555e89367b644 (patch)
tree886aa96e8fb3ce0df7dbd74bec1db3db6cf9bb2c /perl-install/fs/partitioning_wizard.pm
parentf8499aea79d17cdd27111717ec3dfbf2bcce62fa (diff)
downloaddrakx-e398b3cd6490c60035da843b37e555e89367b644.tar
drakx-e398b3cd6490c60035da843b37e555e89367b644.tar.gz
drakx-e398b3cd6490c60035da843b37e555e89367b644.tar.bz2
drakx-e398b3cd6490c60035da843b37e555e89367b644.tar.xz
drakx-e398b3cd6490c60035da843b37e555e89367b644.zip
fix a crash after "insufficient space" error
create_display_box gets called twice. The first time, only the $kind parameter has a value, the second time all the parameters (including $button) have values. On the first time through the partitioning step, the second call to create_display_box sets the selected_for_resize flag for my NTFS partition. When returning to the partitioning step, this flag is still set, so the first call to create_display_box executes the block of code that ends with $button->signal_connect('focus-in-event' => sub { ... }); even though it doesn't have a value for $button. (Martin Whitaker, mga#15919)
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 4a9078966..f3b997377 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -335,7 +335,7 @@ sub create_display_box {
my @colorized_fs_types = qw(ext2 ext3 ext4 xfs swap vfat ntfs ntfs-3g);
my $part_widget = Gtk3::EventBox->new;
$entry->{width} = int($entry->{size} * $initial_ratio) + $minwidth;
- if ($entry->{selected_for_resize}) {
+ if ($resize && $entry->{selected_for_resize}) {
my $ratio;
my $update_ratio = sub { $ratio = $entry->{width} / $entry->{size} };
$update_ratio->();