diff options
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index f33111d7..46bef092 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -21,6 +21,7 @@ #include "gui/sell.h" +#include "client.h" #include "playerinfo.h" #include "shopitem.h" #include "units.h" @@ -248,6 +249,15 @@ void SellDialog::valueChanged(const gcn::SelectionEvent &event) mSlider->gcn::Slider::setScale(1, mMaxItems); } +void SellDialog::mouseClicked(gcn::MouseEvent &mouseEvent) +{ + if (mouseEvent.getSource() == mShopItemList && + isDoubleClick(mShopItemList->getSelected())) + { + action(gcn::ActionEvent(mSellButton, mSellButton->getActionEventId())); + } +} + void SellDialog::setMoney(int amount) { mPlayerMoney = amount; |