diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | rpmdrake | 8 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,6 @@ +- rpmdrake: + o do not crash when running as root (#50473) + Version 5.16.3 - 6 May 2009, Thierry Vignaud - rpmdrake: @@ -619,9 +619,11 @@ sub run_treeview_dialog { %check_boxes = map { $_ => $factory->get_widget("<main>" . $get_path->($_)); } ($auto_string, $noclean_string, $updates_string); - $check_boxes{$auto_string}->set_active($::rpmdrake_options{auto}) if !$>; - $check_boxes{$updates_string}->set_active($compute_updates) if !$>; - $check_boxes{$noclean_string}->set_active(!$::noclean); + if (!$>) { + $check_boxes{$auto_string}->set_active($::rpmdrake_options{auto}); + $check_boxes{$updates_string}->set_active($compute_updates); + $check_boxes{$noclean_string}->set_active(!$::noclean); + } $checkbox_show_autoselect = $factory->get_widget("<main>" . strip_first_underscore(N("/_Options"), N("/_Show automatically selected packages"))) and $checkbox_show_autoselect->set_active(!$dont_show_selections->[0]); |