diff core.lua @ 30:47949f8eb783

Passing in data field for StaticPopup_Show must be done earlier.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 21 Oct 2011 21:34:38 +0000
parents 7d2742727869
children f1d0a5d7b006
line wrap: on
line diff
--- a/core.lua	Mon Oct 10 20:49:07 2011 +0000
+++ b/core.lua	Fri Oct 21 21:34:38 2011 +0000
@@ -216,9 +216,10 @@
 		if arg == 'openloot' then
 			addon:BuildMainDisplay()
 		elseif arg == 'popupurl' then
-			local dialog = StaticPopup_Show "OUROL_URL"
-			-- Sadly, this is not generated by the packager, so hardcode it for now
-			dialog.data = [[http://wow.curse.com/downloads/wow-addons/details/ouroloot.aspx]]
+			-- Sadly, this is not generated by the packager, so hardcode it for now.
+			-- The 'data' field is handled differently for onshow than for other callbacks.
+			StaticPopup_Show("OUROL_URL", --[[text_arg1=]]nil, --[[text_arg2=]]nil,
+				--[[data=]][[http://www.curse.com/addons/wow/ouroloot]])
 		elseif arg == 'doping' then
 			addon:DoPing()
 		elseif arg == 'help' then