aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-05-17 23:06:12 +0859
committerAngelo Naselli <anaselli@linux.it>2016-05-17 23:06:12 +0859
commit89934af598401aee1c89a40533e12b4e2046b0ef (patch)
tree6f8a260931ef86cb23da2b94d5b32f2704aa1825 /lib/ManaTools
parentc69fda84ecc7c485a62f38e846b6038e197d0f08 (diff)
downloadmanatools-89934af598401aee1c89a40533e12b4e2046b0ef.tar
manatools-89934af598401aee1c89a40533e12b4e2046b0ef.tar.gz
manatools-89934af598401aee1c89a40533e12b4e2046b0ef.tar.bz2
manatools-89934af598401aee1c89a40533e12b4e2046b0ef.tar.xz
manatools-89934af598401aee1c89a40533e12b4e2046b0ef.zip
allowing no icons for categories when addin new modules, an existing
category does not need icon
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/MainDisplay.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ManaTools/MainDisplay.pm b/lib/ManaTools/MainDisplay.pm
index 8bae4da4..d9f35aad 100644
--- a/lib/ManaTools/MainDisplay.pm
+++ b/lib/ManaTools/MainDisplay.pm
@@ -780,7 +780,7 @@ sub _loadCategories {
);
$self->D("Load categories: title content is <<%s>>", $title);
my $icon = $tmp->{icon};
- if ((substr( $icon, 0, 1) ne '/')) {
+ if (defined($icon) && (substr( $icon, 0, 1) ne '/')) {
# icon with relative path?
$icon = File::ShareDir::dist_file(ManaTools::Shared::distName(), $tmp->{icon});
}