Quantcast

* Fixed a typo when leaving combat

James Whitehead II [12-05-06 - 23:12]
* Fixed a typo when leaving combat
* Added some separation to the potential bug in CliqueOptions.lua
Filename
Clique.lua
CliqueOptions.lua
diff --git a/Clique.lua b/Clique.lua
index 0ea2b42..045a01a 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -223,7 +223,7 @@ end

 function Clique:CombatUnlock()
 	self:Debug(1, "Setting any out of combat clicks")
-    for frame in pairs(self.cc.frames) do
+    for frame in pairs(self.ccframes) do
 		for k,v in pairs(self.clicksets[L.CLICKSET_OOC]) do
 			self:SetAttribute(v,frame)
 		end
diff --git a/CliqueOptions.lua b/CliqueOptions.lua
index 07b0d4c..e1e5aaa 100644
--- a/CliqueOptions.lua
+++ b/CliqueOptions.lua
@@ -1475,7 +1475,10 @@ StaticPopupDialogs["CLIQUE_NEW_PROFILE"] = {
 	button1 = TEXT(OKAY),
 	button2 = TEXT(CANCEL),
 	OnAccept = function()
-		Clique:SetProfile(getglobal(this:GetName().."EditBox"):GetText())
+		local name = this:GetName().."EditBox"
+		local button = getglobal(name)
+		local text = button:GetText()
+		Clique:SetProfile(text)
 	end,
 	timeout = 0,
 	whileDead = 1,