Merge pull request #908 from diath/fix_market_focus

Fix game interface not gaining focus after exitting the market
This commit is contained in:
Eduardo Bart 2017-11-16 22:44:11 -02:00 committed by GitHub
commit ac21f6772d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -990,6 +990,7 @@ function Market.close(notify)
if not marketWindow:isHidden() then if not marketWindow:isHidden() then
marketWindow:hide() marketWindow:hide()
marketWindow:unlock() marketWindow:unlock()
modules.game_interface.getRootPanel():focus()
Market.clearSelectedItem() Market.clearSelectedItem()
Market.reset() Market.reset()
if notify then if notify then