From 82e2ea340f9b8c74b5b62ae5fe0717894cf3baf6 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 25 Mar 2017 12:11:36 +0100 Subject: [PATCH] bugfix for alt shortcuts --- tabs/auctions/frame.lua | 2 +- tabs/bids/frame.lua | 2 +- tabs/search/frame.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tabs/auctions/frame.lua b/tabs/auctions/frame.lua index bac0df1..b8268cc 100644 --- a/tabs/auctions/frame.lua +++ b/tabs/auctions/frame.lua @@ -17,7 +17,7 @@ listing = auction_listing.new(frame.listing, 20, auction_listing.auctions_column listing:SetSort(1, 2, 3, 4, 5, 6, 7, 8) listing:Reset() listing:SetHandler('OnClick', function(row, button) - if IsAltKeyDown() and listing:GetSelection().record == row.data.record then + if IsAltKeyDown() and listing:GetSelection().record == row.record then cancel_button:Click() end end) diff --git a/tabs/bids/frame.lua b/tabs/bids/frame.lua index 4f2fff8..42a62d3 100644 --- a/tabs/bids/frame.lua +++ b/tabs/bids/frame.lua @@ -17,7 +17,7 @@ listing = auction_listing.new(frame.listing, 20, auction_listing.bids_columns) listing:SetSort(1, 2, 3, 4, 5, 6, 7, 8) listing:Reset() listing:SetHandler('OnClick', function(row, button) - if IsAltKeyDown() and listing:GetSelection().record == row.data.record then + if IsAltKeyDown() and listing:GetSelection().record == row.record then if button == 'LeftButton' then buyout_button:Click() elseif button == 'RightButton' then diff --git a/tabs/search/frame.lua b/tabs/search/frame.lua index ee63d95..06650b7 100644 --- a/tabs/search/frame.lua +++ b/tabs/search/frame.lua @@ -519,7 +519,7 @@ for _ = 1, 5 do local table = auction_listing.new(frame.results, 16, auction_listing.search_columns) table:SetHandler('OnClick', function(row, button) - if IsAltKeyDown() and current_search.table:GetSelection().record == row.data.record then + if IsAltKeyDown() and current_search.table:GetSelection().record == row.record then if button == 'LeftButton' then buyout_button:Click() elseif button == 'RightButton' then