# HG changeset patch # User Farmbuyer of US-Kilrogg # Date 1308342646 0 # Node ID 4fba9c6b5d3df0e0a153345aca06b3f976508f4f # Parent 30ba1f35e164f07ababddaff0b89d52710d02151 Sanity check on history realm list dropdown. diff -r 30ba1f35e164 -r 4fba9c6b5d3d gui.lua --- a/gui.lua Fri Jun 17 00:13:35 2011 +0000 +++ b/gui.lua Fri Jun 17 20:30:46 2011 +0000 @@ -1149,8 +1149,10 @@ do local realms,current = {},1 for realmname,histtable in pairs(addon.history_all) do - tinsert(realms,realmname) - if addon.history == histtable then current = #realms end + if type(histtable) == 'table' then + tinsert(realms,realmname) + if addon.history == histtable then current = #realms end + end end b = mkbutton("Dropdown", nil, "", [[Which realm to display]]) b:SetFullWidth(true)