Quantcast

* Fixed an issue with the new profile static pop-up, where clicking the "Accept" button would cause an error

James Whitehead II [12-06-06 - 01:34]
* Fixed an issue with the new profile static pop-up, where clicking the "Accept" button would cause an error
Filename
CliqueOptions.lua
diff --git a/CliqueOptions.lua b/CliqueOptions.lua
index 5699b03..093919c 100644
--- a/CliqueOptions.lua
+++ b/CliqueOptions.lua
@@ -1474,8 +1474,8 @@ 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()
-		local name = this:GetName().."EditBox"
+	OnAccept = function()
+		local name = this:GetParent():GetName().."EditBox"
 		local button = getglobal(name)
 		local text = button:GetText()
 		Clique:SetProfile(text)