Advanced Trade Skill Window

74 - click to post to (channels)

[string "ATSWTradeSkillLinkButton:OnClick"]:3: attempt to index global 'ChatFrameEditBox' (a nil value)
Count: 1

Call Stack:
(tail call): ?
Interface\AddOns\Auctionator\Auctionator.lua:351 in function <Interface\AddOns\Auctionator\Auctionator.lua:305
[C]: ?
[string "*:OnClick"]:3: in function <[string "*:OnClick"]:1>

User When Change
weasoug Dec 13, 2010 at 13:45 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Thurmal Thurmal Dec 17, 2010 at 01:21 UTC - 0 likes

    I've seen various "fixes" for this bug, all of them are faulty -.- Here comes a correct fix:

    1. In the method

    ATSWFrame_SetSelection
    

    find the line:

    if(button=="LeftButton" and (ChatFrameEditBox:IsVisible() or WIM_EditBoxInFocus~=nil)) then
    

    and replace

    ChatFrameEditBox:IsVisible()
    

    with

    ChatEdit_GetActiveWindow() ~= nil
    

    2. in the method

    ATSW_AddTradeSkillReagentLinksToChatFrame
    

    replace all occurances of

    ChatFrameEditBox
    

    with

    ChatEdit_GetActiveWindow()
    

    The other "fix" going arround only works for the chatframe edit of the default chatwindow. If there are multiple chatwindows (new tab that is presented in a new window) the code would still crash in the other edit boxes.

    EDIT: This and the following bug-reports seem to be duplicates of ticket 61: 77, 75, 74, 73, 68, 65

    Last edited Dec 17, 2010 by Thurmal: addition
  • 1 comment

Facts

Last updated
Mar 30, 2012
Reported
Dec 13, 2010
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
9

Reported by

Possible assignees