From f09f9122e0233181e435778df29d27cc76fe8a76 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 20 Feb 2016 03:56:42 +0100 Subject: [PATCH] clearing selection on express mode in bids/auctions frames --- auctions_frame.lua | 1 + bids_frame.lua | 1 + search_frame.lua | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/auctions_frame.lua b/auctions_frame.lua index ffb8050..825d255 100644 --- a/auctions_frame.lua +++ b/auctions_frame.lua @@ -210,6 +210,7 @@ function private.on_row_click(auction_record) -- else local express_mode = IsAltKeyDown() if express_mode then + selected_auction = nil private.find_auction_and_cancel(auction_record) else selected_auction = auction_record diff --git a/bids_frame.lua b/bids_frame.lua index 5332edd..97dedf9 100644 --- a/bids_frame.lua +++ b/bids_frame.lua @@ -242,6 +242,7 @@ function private.on_row_click(auction_record) local express_mode = IsAltKeyDown() local buyout_mode = express_mode and arg1 == 'LeftButton' if express_mode then + selected_auction = nil private.find_auction_and_bid(auction_record, buyout_mode) else selected_auction = auction_record diff --git a/search_frame.lua b/search_frame.lua index 9286686..b8e5d5b 100644 --- a/search_frame.lua +++ b/search_frame.lua @@ -692,6 +692,7 @@ end private.results_listing:SetSort(9) private.results_listing:Clear() private.results_listing:SetHandler('OnCellAltClick', function(cell, button) + private.results_listing:SetSelectedRecord(nil) private.find_auction_and_bid(cell.row.data.record, button == 'LeftButton') end) @@ -874,8 +875,6 @@ function private.find_auction_and_bid(record, buyout_mode) return end - private.results_listing:SetSelectedRecord(nil) - Aux.scan_util.find(private.test(record), record.query, record.page, private.status_bar, Aux.util.pass, private.record_remover(record), function(index) if private.results_listing:ContainsRecord(record) then Aux.place_bid('list', index, buyout_mode and record.buyout_price or record.bid_price, private.record_remover(record))