diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-18 14:20:14 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-18 19:55:11 -0600 |
commit | 6f0d88e781c8b1a75858c769b3641aa8cd477314 (patch) | |
tree | 98891d219272074e437cd58087a7aaafc463c40a /src/gui/buy.cpp | |
parent | 74fa304602e0e7ad845e606db8868b32f1d10864 (diff) | |
download | mana-6f0d88e781c8b1a75858c769b3641aa8cd477314.tar.gz mana-6f0d88e781c8b1a75858c769b3641aa8cd477314.tar.bz2 mana-6f0d88e781c8b1a75858c769b3641aa8cd477314.tar.xz mana-6f0d88e781c8b1a75858c769b3641aa8cd477314.zip |
Fix up the NPC interraction widnows a bit
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r-- | src/gui/buy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index 367a041e..ea1df204 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -236,3 +236,10 @@ void BuyDialog::updateButtonsAndLabels() mMoneyLabel->setCaption (strprintf(_("Price: %d GP / Total: %d GP"), price, mMoney - price)); } + +void BuyDialog::setVisible(bool visible) +{ + Window::setVisible(visible); + + if (visible) requestFocus(); +} |