Quantcast

Fix the 'Select None' button in the frame blacklist editor

James Whitehead II [10-17-10 - 23:13]
Fix the 'Select None' button in the frame blacklist editor
Filename
FrameOptionsPanel.lua
diff --git a/FrameOptionsPanel.lua b/FrameOptionsPanel.lua
index 38ba719..b43e299 100644
--- a/FrameOptionsPanel.lua
+++ b/FrameOptionsPanel.lua
@@ -114,7 +114,20 @@ function panel:CreateOptions()
     self.selectnone:SetPoint("BOTTOMLEFT", self.selectall, "BOTTOMRIGHT", 5, 0)
     self.selectnone:SetWidth(100)
     self.selectnone:SetScript("OnClick", function(button)
-        state = {}
+        for frame in pairs(addon.ccframes) do
+            local name = frame:GetName()
+            if name then
+                state[name] = false
+            end
+        end
+
+        for frame in pairs(addon.hccframes) do
+            local name = frame:GetName()
+            if name then
+                state[name] = false
+            end
+        end
+
         self:UpdateScrollFrame()
     end)
 end