From c94a736ddcf5299b6eacb9cfd5c09c6266dd78aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Apr 2016 16:18:29 +0300 Subject: Move itemamountwindowusage enum into separate file. Also convert it to strong typed enum. --- src/gui/windows/shopwindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/shopwindow.cpp') 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)); } } } -- cgit v1.2.3-60-g2f50