From 48bd665f9048cd99cc70f324ae04e20ad64d5c70 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sat, 13 Aug 2005 21:24:47 +0000 Subject: Reset selection in the sell dialog if all items at the selected slot are sold. --- src/gui/sell.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 920d90f6..6bac0bb1 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -256,6 +256,7 @@ void SellDialog::action(const std::string& eventId) { slider->setEnabled(false); increaseButton->setEnabled(false); + itemList->setSelected(-1); shopInventory.erase(shopInventory.begin() += selectedItem); } else -- cgit v1.2.3-70-g09d2