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/diskdrake/hd_gtk.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install/diskdrake') 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