From 89934af598401aee1c89a40533e12b4e2046b0ef Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Tue, 17 May 2016 23:06:12 +0859 Subject: allowing no icons for categories when addin new modules, an existing category does not need icon --- lib/ManaTools/MainDisplay.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ManaTools') 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}); } -- cgit v1.2.1