aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-22 21:18:35 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-22 21:18:35 +0000
commitefd08c735ee86564ff8712f63d2a167ef8078933 (patch)
tree0a8887b6bf9985abb568e5cdc2bfd22b53a8317d /Rpmdrake/edit_urpm_sources.pm
parent5fc500f31f6136a536bf5f9ced146077d589e5fb (diff)
downloadrpmdrake-efd08c735ee86564ff8712f63d2a167ef8078933.tar
rpmdrake-efd08c735ee86564ff8712f63d2a167ef8078933.tar.gz
rpmdrake-efd08c735ee86564ff8712f63d2a167ef8078933.tar.bz2
rpmdrake-efd08c735ee86564ff8712f63d2a167ef8078933.tar.xz
rpmdrake-efd08c735ee86564ff8712f63d2a167ef8078933.zip
(add_callback) fix crashing when adding a custom medium
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 8fc731c9..37dbea01 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -211,7 +211,6 @@ sub add_callback() {
$info->{distrib_check} = $cb1 = gtknew('CheckButton', text => N("Create media for a whole distribution")),
clicked => sub {
if ($_[0]->get_active) {
- $info->{hdlist_entry}->set_sensitive(0);
$info->{hdlist_check}->set_active(0);
}
},
@@ -240,7 +239,7 @@ really want to replace it?"), yesno => 1) or return 0;
};
my $type = 'local';
- my ($probe, %i, %make_url);
+ my (%i, %make_url);
gtkadd(
$w->{window},
gtkpack(
@@ -266,7 +265,6 @@ really want to replace it?"), yesno => 1) or return 0;
%i = (
name => $info->{name_entry}->get_text,
url => $info->{url_entry}->get_text,
- hdlist => $info->{hdlist_entry}->get_text,
distrib => $info->{distrib_check} ? $info->{distrib_check}->get_active : 0,
update => $info->{update_check}->get_active ? 1 : undef,
);
@@ -282,7 +280,6 @@ really want to replace it?"), yesno => 1) or return 0;
? ($info->{login_entry}->get_text . ':' . $info->{pass_entry}->get_text . '@')
: '',
$i{url};
- $probe = $info->{hdlist_check}->get_active == 0 || $i{hdlist} eq '';
Gtk2->main_quit;
}
},
@@ -306,7 +303,7 @@ really want to replace it?"), yesno => 1) or return 0;
}
add_medium_and_check(
$urpm,
- { probe_with => $probe, nolock => 1 },
+ { nolock => 1 },
$i{name}, $make_url{$type}, $i{hdlist}, update => $i{update},
);
}