aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index f9322504..231524fc 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -192,7 +192,10 @@ sub add_callback() {
$info->{dirsel},
0, gtksignal_connect(
gtknew('Button', text => but(N("Browse..."))),
- clicked => sub { $info->{url_entry}->set_text(ask_dir()) },
+ clicked => sub {
+ my $dir = ask_dir() or return;
+ $info->{url_entry}->set_text($dir);
+ }
)
),
);