From 3adb60aff810f3493789cfb4db21ca5bcd4bf9c8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 9 Dec 2013 04:25:07 +0100 Subject: workaround a crash (mga#11924) sometimes (when there's more than one disk), the notebook is realized too early and our callbacks aren't called, resulting in $done_button not being initialized --- perl-install/NEWS | 1 + perl-install/diskdrake/hd_gtk.pm | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 1c9c60aa3..431e892b3 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,5 +1,6 @@ - partitioning wizard: o log failures (mga#11924) + o workaround a crash (mga#11924) Version 16.11 - 6 December 2013 diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index ed32cb225..7ad48ab82 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -115,6 +115,12 @@ sub main { # ensure partitions bar is properly sized on first display: $notebook_widget->signal_connect(realize => $update_all); $w->sync; + # workaround for $notebook_widget being realized too early: + if (!$done_button) { + $notebook_widget->set_current_page(-1); + $notebook_widget->set_current_page(0); + $update_all->(2); + } $done_button->grab_focus; if (!$::testing) { $in->ask_from_list_(N("Read carefully"), N("Please make a backup of your data first"), -- cgit v1.2.1