aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-12-03 17:40:57 +0000
committerThierry Vignaud <tv@mandriva.org>2009-12-03 17:40:57 +0000
commit33be3d14096c7ae35569dc4422ee84ddee71f427 (patch)
treebf23fd7f659c8406d41a7193f7f2996012994f43
parentd1c55a19406cb24c077a5518e93da23a1a079b12 (diff)
downloadrpmdrake-33be3d14096c7ae35569dc4422ee84ddee71f427.tar
rpmdrake-33be3d14096c7ae35569dc4422ee84ddee71f427.tar.gz
rpmdrake-33be3d14096c7ae35569dc4422ee84ddee71f427.tar.bz2
rpmdrake-33be3d14096c7ae35569dc4422ee84ddee71f427.tar.xz
rpmdrake-33be3d14096c7ae35569dc4422ee84ddee71f427.zip
(run_treeview_dialog) fix crashing when running as user (#55009)
(the whole 'options' menu is disabled when not running as root ; alternatively we could show those 2 opions when running as user as they can be usefull)
-rw-r--r--NEWS3
-rwxr-xr-xrpmdrake4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d4758512..85540414 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake:
+ o fix crashing when running as user (#55009)
+
Version 5.23 - 27 October 2009, Thierry Vignaud
- rename 'dependancies' as 'new dependancies' and tell there's no new
diff --git a/rpmdrake b/rpmdrake
index 8647609d..706e64d2 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -637,9 +637,9 @@ sub run_treeview_dialog {
%check_boxes = map {
$_ => $factory->get_widget("<main>" . $get_path->($_));
} ($auto_string, $noclean_string, $NVR_string, $updates_string, $regexp_search_string);
- $check_boxes{$regexp_search_string}->set_active($use_regexp->[0]);
- $check_boxes{$NVR_string}->set_active($NVR_searches->[0]);
if (!$>) {
+ $check_boxes{$regexp_search_string}->set_active($use_regexp->[0]);
+ $check_boxes{$NVR_string}->set_active($NVR_searches->[0]);
$check_boxes{$auto_string}->set_active($::rpmdrake_options{auto});
$check_boxes{$updates_string}->set_active($compute_updates->[0]);
$check_boxes{$noclean_string}->set_active(!$::noclean);