summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-07 23:18:19 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-07 23:18:19 -0600
commitec4656af8e2d1946ea2b1d036457c885a9e420dd (patch)
tree35146170d272ed41b3afeb8efa242637c508c5f0 /src
parent7bcadd46d12b4c42b1f6e3038f79db7f8d8c6b5a (diff)
downloadmana-ec4656af8e2d1946ea2b1d036457c885a9e420dd.tar.gz
mana-ec4656af8e2d1946ea2b1d036457c885a9e420dd.tar.bz2
mana-ec4656af8e2d1946ea2b1d036457c885a9e420dd.tar.xz
mana-ec4656af8e2d1946ea2b1d036457c885a9e420dd.zip
Remove the cancel button from ItemAmountWindow
It's completely superfluous, due to the close button (which the cancel button was just calling anyways).
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemamount.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/itemamount.cpp b/src/gui/itemamount.cpp
index e3891d29..32ad4706 100644
--- a/src/gui/itemamount.cpp
+++ b/src/gui/itemamount.cpp
@@ -86,7 +86,6 @@ ItemAmountWindow::ItemAmountWindow(Usage usage, Window *parent, Item *item,
Button *minusButton = new Button("-", "Minus", this);
Button *plusButton = new Button("+", "Plus", this);
Button *okButton = new Button(_("Ok"), "Ok", this);
- Button *cancelButton = new Button(_("Cancel"), "Cancel", this);
Button *addAllButton = new Button(_("All"), "All", this);
minusButton->adjustSize();
@@ -102,7 +101,6 @@ ItemAmountWindow::ItemAmountWindow(Usage usage, Window *parent, Item *item,
place = getPlacer(0, 1);
place(0, 0, mItemAmountSlide, 6);
place = getPlacer(0, 2);
- place(4, 0, cancelButton);
place(5, 0, okButton);
reflowLayout(225, 0);
@@ -140,11 +138,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
{
int amount = mItemAmountTextField->getValue();
- if (event.getId() == "Cancel")
- {
- close();
- }
- else if (event.getId() == "Plus" && amount < mMax)
+ if (event.getId() == "Plus" && amount < mMax)
{
amount++;
}