changeset 129:5f6182a97d40

Re-enabled IA QuickAuctions decider. I unintentionally disabled it when working on the QAManager code.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Fri, 03 Sep 2010 22:30:31 -0700
parents 451d8a19edea
children f37ab41f1928
files CHANGELOG.txt Modules/QuickAuctions.lua
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Thu Sep 02 23:59:09 2010 -0700
+++ b/CHANGELOG.txt	Fri Sep 03 22:30:31 2010 -0700
@@ -1,3 +1,7 @@
+2010-09-03  Asa Ayers  <Asa.Ayers@Gmail.com>
+
+- Re-enabled IA QuickAuctions decider. I unintentionally disabled it when working on the QAManager code.
+
 2010-09-02  Asa Ayers  <Asa.Ayers@Gmail.com>
 
 - Updated the ArkInventory rule and tooltip to work in QA is compatible instead of if its enabled in ItemAuditor.
--- a/Modules/QuickAuctions.lua	Thu Sep 02 23:59:09 2010 -0700
+++ b/Modules/QuickAuctions.lua	Fri Sep 03 22:30:31 2010 -0700
@@ -118,7 +118,7 @@
 end
 
 local function isProfitable(data)
-	if ItemAuditor.IsQAEnabled() then
+	if ItemAuditor:IsQACompatible() then
 		local QAGroup = QAAPI:GetItemGroup(data.link)
 		if QAGroup ~= nil then
 			local currentInvested, _, currentCount = ItemAuditor:GetItemCost(data.link)
@@ -157,8 +157,7 @@
 		set = function(info, value)
 			ItemAuditor.db.char.qa_extra = value
 		end,
-		handler = ItemAuditor,
-		disabled = 'IsQACompatible',
+		disabled = function() return not ItemAuditor:IsQACompatible() end,
 		order = 10,
 	},
 }