Quantcast

In the MainPanel's OnShow script: Fixed defaulting to Name view if no applicable match was found.

James D. Callahan III [04-19-10 - 10:23]
In the MainPanel's OnShow script: Fixed defaulting to Name view if no applicable match was found.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index a3dbbf5..ab30d17 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -1090,7 +1090,10 @@ MainPanel:SetScript("OnShow",

 			    -- Default to the name tab.
 			    if not found then
-				    on_click(self.tabs[3])
+				    local tab = self.tabs[3]
+				    local on_click = tab:GetScript("OnClick")
+
+				    on_click(tab)
 			    end
 		    end)