Quantcast

Moved call to SetSortName() from addon:InitializeFrame() to MainPanel.scroll_frame:Update().

James D. Callahan III [03-25-10 - 03:13]
Moved call to SetSortName() from addon:InitializeFrame() to MainPanel.scroll_frame:Update().
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 78fee51..4943736 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2641,6 +2641,8 @@ do
 			twipe(self.entries)
 			twipe(recipe_registry)

+			SetSortName()
+
 			if sort_type == "Acquisition" then
 				local sorted_acquires = addon.sorted_acquires
 				local current_prof = Player.current_prof
@@ -3506,8 +3508,6 @@ function addon:InitializeFrame()
 	local Frostborn_Taunka_FactionText = isAlliance and BFAC["The Frostborn"] or BFAC["The Taunka"]
 	local Explorer_Hand_FactionText = isAlliance and BFAC["Explorers' League"] or BFAC["The Hand of Vengeance"]

-	-- Has to be done here because db doesn't exist yet if executed in the main file body.
-	SetSortName()

 	-------------------------------------------------------------------------------
 	-- Flyaway virtual frames to group buttons/text easily (and make them easy to show/hide)