summaryrefslogtreecommitdiff
path: root/src/gui/windows/maileditwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-23 18:42:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-23 20:55:58 +0300
commitbfdee54a34531631a021f9f112186504cebde4c7 (patch)
treee49dfa982d7724497c8a7a433285e833410a0bb1 /src/gui/windows/maileditwindow.cpp
parent79864826790a33a3583819fe02893eed010381d9 (diff)
downloadplus-bfdee54a34531631a021f9f112186504cebde4c7.tar.gz
plus-bfdee54a34531631a021f9f112186504cebde4c7.tar.bz2
plus-bfdee54a34531631a021f9f112186504cebde4c7.tar.xz
plus-bfdee54a34531631a021f9f112186504cebde4c7.zip
Add partial adding items into new mail message.
Diffstat (limited to 'src/gui/windows/maileditwindow.cpp')
-rw-r--r--src/gui/windows/maileditwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp
index a2f7fe6c8..5f7426a76 100644
--- a/src/gui/windows/maileditwindow.cpp
+++ b/src/gui/windows/maileditwindow.cpp
@@ -20,6 +20,8 @@
#include "gui/windows/maileditwindow.h"
+#include "settings.h"
+
#include "being/playerinfo.h"
#include "gui/windows/inventorywindow.h"
@@ -67,11 +69,13 @@ MailEditWindow::MailEditWindow() :
mSubjectField(new TextField(this)),
mMoneyField(new IntTextField(this, 0, 0, 10000000)),
mMessageField(new TextField(this)),
- mInventory(new Inventory(InventoryType::Mail, 1)),
+ mInventory(new Inventory(InventoryType::Mail,
+ settings.enableNewMailSystem ? -1 : 1)),
mItemContainer(new ItemContainer(this, mInventory)),
mItemScrollArea(new ScrollArea(this, mItemContainer,
fromBool(getOptionBool("showitemsbackground"), Opaque),
- "mailedit_listbackground.xml"))
+ "mailedit_listbackground.xml")),
+ mUseMail2(settings.enableNewMailSystem)
{
setWindowName("MailEdit");
setCloseButton(true);