summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 21:24:47 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 21:24:47 +0000
commit48bd665f9048cd99cc70f324ae04e20ad64d5c70 (patch)
tree5cd63c8cf0093abb7f4db60fb44aab4143eb75ed
parent4d80029ffb20996e55ff3532b92c02737dad581d (diff)
downloadmana-48bd665f9048cd99cc70f324ae04e20ad64d5c70.tar.gz
mana-48bd665f9048cd99cc70f324ae04e20ad64d5c70.tar.bz2
mana-48bd665f9048cd99cc70f324ae04e20ad64d5c70.tar.xz
mana-48bd665f9048cd99cc70f324ae04e20ad64d5c70.zip
Reset selection in the sell dialog if all items at the selected slot are sold.
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/sell.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 24ca2e1f..90b71087 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,8 @@
src/gui/skill.cpp, src/gui/skill.h, src/gui/stats.cpp, src/gui/status.cpp:
Another small header cleanup, should also solve compilation problems on
windows.
+ * src/gui/sell.cpp: Reset selection in the sell dialog if all items at the
+ selected slot are sold.
2005-08-13 Eugenio Favalli <elvenprogrammer@gmail.com>
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