Fix a bug with the 'save as' button
James Whitehead II [03-08-11 - 15:53]
Fix a bug with the 'save as' button
diff --git a/WowLua.lua b/WowLua.lua
index 2b57adb..4c685bd 100644
--- a/WowLua.lua
+++ b/WowLua.lua
@@ -397,7 +397,7 @@ StaticPopupDialogs["WOWLUA_SAVE_AS"] = {
button1 = TEXT(OKAY),
button2 = TEXT(CANCEL),
OnAccept = function(self)
- local name = self:GetParent():GetName().."EditBox"
+ local name = self:GetName().."EditBox"
local button = _G[name]
local text = button:GetText()
WowLua:RenamePage(WowLua.save_as, text)