summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-16 16:18:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-16 16:18:29 +0300
commitc94a736ddcf5299b6eacb9cfd5c09c6266dd78aa (patch)
tree356f87aac5b794fa4e0903a15ec83f55f52f7b00 /src/gui/windows/shopwindow.cpp
parente811e48760c7f9a22615f40a0b025d34b9f12eb0 (diff)
downloadmanaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.gz
manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.bz2
manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.tar.xz
manaverse-c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa.zip
Move itemamountwindowusage enum into separate file.
Also convert it to strong typed enum.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index eb07c90dc..6b7994854 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -400,13 +400,18 @@ void ShopWindow::action(const ActionEvent &event)
{
if (isBuySelected)
{
- ItemAmountWindow::showWindow(ItemAmountWindow::ShopBuyAdd,
- this, item, sumAmount(item));
+ ItemAmountWindow::showWindow(ItemAmountWindowUsage::ShopBuyAdd,
+ this,
+ item,
+ sumAmount(item));
}
else
{
- ItemAmountWindow::showWindow(ItemAmountWindow::ShopSellAdd,
- this, item, sumAmount(item));
+ ItemAmountWindow::showWindow(
+ ItemAmountWindowUsage::ShopSellAdd,
+ this,
+ item,
+ sumAmount(item));
}
}
}