summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-06 16:34:06 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-06 16:36:11 -0600
commit574ef501d32c7735d2aed022f2a3761d053bbe7c (patch)
treeca5dd0709d6a0d1989af3fab6b1f85c6726a2fb0 /src/gui/popupmenu.cpp
parent3603521356ad1646d456a1681ff9f8a7c88ab458 (diff)
downloadmana-client-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.gz
mana-client-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.bz2
mana-client-574ef501d32c7735d2aed022f2a3761d053bbe7c.tar.xz
mana-client-574ef501d32c7735d2aed022f2a3761d053bbe7c.zip
Clean up the bypass code for the ItemAmountWindow
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 6f2f9be4..46a33d6c 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -278,25 +278,25 @@ void PopupMenu::handleLink(const std::string &link)
else if (link == "split")
{
- new ItemAmountWindow(ItemAmountWindow::ItemSplit,
+ ItemAmountWindow::showWindow(ItemAmountWindow::ItemSplit,
inventoryWindow, mItem);
}
else if (link == "drop")
{
- new ItemAmountWindow(ItemAmountWindow::ItemDrop,
+ ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop,
inventoryWindow, mItem);
}
else if (link == "store")
{
- new ItemAmountWindow(ItemAmountWindow::StoreAdd,
+ ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd,
inventoryWindow, mItem);
}
else if (link == "retrieve")
{
- new ItemAmountWindow(ItemAmountWindow::StoreRemove,
+ ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove,
storageWindow, mItem);
}