Prospect

79 - Fix failure when a frame is added to the ignore list

The patch fixes addon failure on load when any frame has been added to the ignore list.

Replace the following code (line 806) in Prospect.lua:

for _, id in pairs{"good", "bad"} do
	local index = id .. "Frames"
	for fname in pairs(ProspectOptions[index]) do
		frameNames[index][fname] = frameNames[index][fname] or 1
	end
end

With this:

for _, id in pairs{"good", "bad"} do
	local index = id .. "Names"
	for fname in pairs(ProspectOptions[id .. "Frames"]) do
		frameNames[index][fname] = frameNames[index][fname] or 1
	end
end
User When Change
zenima7 Apr 19, 2013 at 23:53 UTC Changed description:
  Replace the following code (line 806) in Prospect.lua:
  [code]
- 		for _, id in pairs{"good", "bad"} do
+ for _, id in pairs{"good", "bad"} do
- 			local index = id .. "Frames"
+ 	local index = id .. "Frames"
- 			for fname in pairs(ProspectOptions[index]) do
+ 	for fname in pairs(ProspectOptions[index]) do
- 				frameNames[index][fname] = frameNames[index][fname] or 1
+ 		frameNames[index][fname] = frameNames[index][fname] or 1
- 			end
- 		end
+ 	end
+ end
  [/code]
  With this:
  [code]
- 		for _, id in pairs{"good", "bad"} do
+ for _, id in pairs{"good", "bad"} do
- 			local index = id .. "Names"
+ 	local index = id .. "Names"
- 			for fname in pairs(ProspectOptions[id .. "Frames"]) do
+ 	for fname in pairs(ProspectOptions[id .. "Frames"]) do
- 				frameNames[index][fname] = frameNames[index][fname] or 1
+ 		frameNames[index][fname] = frameNames[index][fname] or 1
- 			end
- 		end
+ 	end
+ end
  [/code]
zenima7 Apr 19, 2013 at 23:53 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Apr 19, 2013
Reported
Apr 19, 2013
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees