summaryrefslogtreecommitdiffstats
path: root/perl-install
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
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')
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/fs/partitioning_wizard.pm2
-rw-r--r--perl-install/install/NEWS2
3 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 93b0c7711..15f7b5bab 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,6 @@
+- library (for draklive-install):
+ o fix a crash after "insufficient space" error (mga#15919)
+
Version 16.94 - 10 May 2015
- remove_unused_packages():
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->();
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index a462c790a..3a0558968 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,4 +1,6 @@
- better dialog title (mga#9648)
+- partitioning:
+ o fix a crash after "insufficient space" error (mga#15919)
Version 16.93 - 9 May 2015