aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 00:24:04 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-06-27 00:24:04 +0200
commit5788627a0a6bdb2961534c9c2a99014e6f60a99f (patch)
tree08aad83f300b6aa90601536018b7380225947b5c /Rpmdrake
parent97ca41fec01c61151171ec1b1a8ac8b8bcc02840 (diff)
downloadrpmdrake-5788627a0a6bdb2961534c9c2a99014e6f60a99f.tar
rpmdrake-5788627a0a6bdb2961534c9c2a99014e6f60a99f.tar.gz
rpmdrake-5788627a0a6bdb2961534c9c2a99014e6f60a99f.tar.bz2
rpmdrake-5788627a0a6bdb2961534c9c2a99014e6f60a99f.tar.xz
rpmdrake-5788627a0a6bdb2961534c9c2a99014e6f60a99f.zip
fix crashing when canceling browsing custom media path (mga#13268)
Diffstat (limited to 'Rpmdrake')
-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);
+ }
)
),
);