summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-06 16:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-06 16:58:18 +0300
commitd557ce63e240960746e48c678b4a08ba66f7fe40 (patch)
tree8dfa33e155d7ea2145df9056895f0c1293155349 /src/gui/widgets/selldialog.cpp
parent8e243bbcdae592e1c003e5d2c37c8f0e8f1304e7 (diff)
downloadmv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.gz
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.bz2
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.xz
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.zip
Add custom currency also into shop items list.
Diffstat (limited to 'src/gui/widgets/selldialog.cpp')
-rw-r--r--src/gui/widgets/selldialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 7f96e14ff..b455597a2 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -22,6 +22,8 @@
#include "gui/widgets/selldialog.h"
+#include "const/resources/currency.h"
+
#include "enums/gui/layouttype.h"
#include "gui/windows/setupwindow.h"
@@ -89,7 +91,8 @@ void SellDialog::postInit()
setupWindow->registerWindowForReset(this);
// Create a ShopItems instance, that is aware of duplicate entries.
- mShopItems = new ShopItems(true);
+ mShopItems = new ShopItems(true,
+ DEFAULT_CURRENCY);
if (mAdvanced == Advanced_true)
mShopItems->setMergeDuplicates(false);