# HG changeset patch # User Farmbuyer of US-Kilrogg # Date 1333736602 0 # Node ID 7af58a7dce7d55aebc7e6a91d73d2c0d36b307fa # Parent 94dacaeff4630504f2a62d1a8518d5dac9ccfe24 Don't collapse wipes into kills across normal/heroic boundaries. Apply preferredIndex change to popup dialogs to avoid memory tainting. diff -r 94dacaeff463 -r 7af58a7dce7d LibFarmbuyer.lua --- a/LibFarmbuyer.lua Wed Feb 01 06:53:34 2012 +0000 +++ b/LibFarmbuyer.lua Fri Apr 06 18:23:22 2012 +0000 @@ -54,7 +54,7 @@ Ditto for table recycling. ]] -local MAJOR, MINOR = "LibFarmbuyer", 14 +local MAJOR, MINOR = "LibFarmbuyer", 15 assert(LibStub,MAJOR.." requires LibStub") local lib = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end @@ -215,6 +215,7 @@ t.whileDead = true t.hideOnEscape = true t.enterClicksFirstButton = true + t.preferredIndex = 3 -- http://forums.wowace.com/showthread.php?t=19960 return t end diff -r 94dacaeff463 -r 7af58a7dce7d core.lua --- a/core.lua Wed Feb 01 06:53:34 2012 +0000 +++ b/core.lua Fri Apr 06 18:23:22 2012 +0000 @@ -1463,6 +1463,7 @@ while d ~= e do if d.bosskill and d.bosskill == e.bosskill and + d.instance == e.instance and d.reason == 'wipe' then first = first or i diff -r 94dacaeff463 -r 7af58a7dce7d gui.lua --- a/gui.lua Wed Feb 01 06:53:34 2012 +0000 +++ b/gui.lua Fri Apr 06 18:23:22 2012 +0000 @@ -2269,6 +2269,7 @@ enterClicksFirstButton = true, hasEditBox = true, editBoxWidth = 350, + preferredIndex = 3, OnShow = function (dialog, url) dialog.editBox:SetText(url) dialog.editBox:SetFocus()