From 328272cc4a08dbae2082df9edb2d34fd0589f034 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 5 Dec 2006 23:12:03 +0000 Subject: [PATCH] * Fixed a typo when leaving combat * Added some separation to the potential bug in CliqueOptions.lua --- Clique.lua | 2 +- CliqueOptions.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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, -- 1.7.9.5