summaryrefslogtreecommitdiffstats
path: root/bin/slxsettings
diff options
context:
space:
mode:
Diffstat (limited to 'bin/slxsettings')
-rwxr-xr-xbin/slxsettings8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/slxsettings b/bin/slxsettings
index 5aa0dfa3..f1b35019 100755
--- a/bin/slxsettings
+++ b/bin/slxsettings
@@ -162,8 +162,12 @@ sub changedHandler
# invoke a key-specific change handler if it exists:
$key =~ tr[-][_];
- no strict 'refs'; ## no critic (ProhibitNoStrict)
- "${key}_changed_handler"->();
+ # we do the following function call in an eval as that function may simply
+ # not exist:
+ eval {
+ no strict 'refs'; ## no critic (ProhibitNoStrict)
+ "${key}_changed_handler"->();
+ };
return;
}