diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-06-27 00:24:04 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-06-27 00:24:30 +0200 |
commit | 36496c787d32a3b1d2ef8a629ea6e724c1f55e59 (patch) | |
tree | 646687b44c99d62b951d24a4fdbff4526996128f /Rpmdrake | |
parent | dc9950451a6c83815e2f680f9eaba6da31a18300 (diff) | |
download | rpmdrake-36496c787d32a3b1d2ef8a629ea6e724c1f55e59.tar rpmdrake-36496c787d32a3b1d2ef8a629ea6e724c1f55e59.tar.gz rpmdrake-36496c787d32a3b1d2ef8a629ea6e724c1f55e59.tar.bz2 rpmdrake-36496c787d32a3b1d2ef8a629ea6e724c1f55e59.tar.xz rpmdrake-36496c787d32a3b1d2ef8a629ea6e724c1f55e59.zip |
fix crashing when canceling browsing custom media path (mga#13268)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 5 |
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); + } ) ), ); |