aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--Rpmdrake/edit_urpm_sources.pm7
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index dcea85ec..3cb12ad9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
- drop diagnostics, strict, vars and warnings pragmas (should help #45361)
+- edit_urpm_sources:
+ o prevent enabling one to tag media as update media when adding
+ whole distro media
- rpmdrake:
o update GUI package list
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 8789883e..82d9316b 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -228,7 +228,12 @@ sub add_callback() {
$url_entry->() ],
if_($info->{loginpass}, $loginpass_entries->()),
sub {
- [ $info->{distrib_check} = $cb1 = gtknew('CheckButton', text => N("Create media for a whole distribution"))
+ [ $info->{distrib_check} = $cb1 = gtknew('CheckButton', text => N("Create media for a whole distribution"),
+ toggled => sub {
+ return if !$cb2;
+ my ($w) = @_;
+ $info->{update_check}->set_sensitive(!$w->get_active);
+ })
];
}->(),
sub {