From 2912cadddce0cfea268140f5b757c59a49fc82bc Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 3 Nov 2008 19:09:36 +0000 Subject: [PATCH] * Fix an issue with the new profile dialog when clicking the "Accept" button --- CliqueOptions.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index b89534c..ef6da48 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -1576,11 +1576,10 @@ StaticPopupDialogs["CLIQUE_NEW_PROFILE"] = { text = TEXT("Enter the name of a new profile you'd like to create"), button1 = TEXT(OKAY), button2 = TEXT(CANCEL), - OnAccept = function(self) - local name = self:GetParent():GetName().."EditBox" - local button = getglobal(name) - local text = button:GetText() - Clique.db:SetProfile(text) + OnAccept = function(self) + local base = self:GetName() + local editbox = getglobal(base .. "EditBox") + Clique.db:SetProfile(editbox:GetText()) end, timeout = 0, whileDead = 1, -- 1.7.9.5