summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index a68acd4c1..1e3abdbaa 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -581,7 +581,7 @@ sub create_hpaned {
sub _find_imgfile {
my ($name) = @_;
- if ($name =~ m|^/|) {
+ if ($name =~ m|/| && -f $name) {
$name;
} else {
foreach my $path (icon_paths()) {