Quantcast

Swapbutton was overriding confirm button

Alar of Daggerspine [08-19-15 - 13:11]
Swapbutton was overriding confirm button

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
FollowerPage.lua
diff --git a/FollowerPage.lua b/FollowerPage.lua
index 751a026..201d917 100644
--- a/FollowerPage.lua
+++ b/FollowerPage.lua
@@ -115,10 +115,10 @@ function addon:ShowUpgradeButtons(force)
 		end)
 	end
 	if (not gf.swapButtons) then
-		gf.noConfirm=self:GetFactory():Checkbox(gf.Model,self:GetToggle("SWAPBUTTONS"),self:GetVarInfo("SWAPBUTTONS"))
-		gf.noConfirm:SetPoint("TOPLEFT",0,-40)
-		gf.noConfirm:Show()
-		gf.noConfirm:SetScript("OnClick",function(this)
+		gf.swapButtons=self:GetFactory():Checkbox(gf.Model,self:GetToggle("SWAPBUTTONS"),self:GetVarInfo("SWAPBUTTONS"))
+		gf.swapButtons:SetPoint("TOPLEFT",0,-40)
+		gf.swapButtons:Show()
+		gf.swapButtons:SetScript("OnClick",function(this)
 			addon:SetBoolean("SWAPBUTTONS",this:GetChecked())
 			addon:ShowUpgradeButtons()
 		end)