From c6fdd3c4756d48d0fafeff205300745cff9bb3ef Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 12 Oct 2012 08:02:24 +0200 Subject: [PATCH] Fix an issue with saved variables/callbacks --- TomTom.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index 225715e..c4c0bfa 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -274,7 +274,10 @@ function TomTom:ReloadWaypoints() -- Override options with what is stored in the profile for k,v in pairs(waypoint) do if type(k) == "string" then - options[k] = v + if k ~= "callbacks" then + -- we can never import callbacks, so ditch them + options[k] = v + end end end -- 1.7.9.5