summaryrefslogtreecommitdiff
path: root/src/gui/windows/maileditwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/maileditwindow.cpp')
-rw-r--r--src/gui/windows/maileditwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp
index 1da222b30..b70188786 100644
--- a/src/gui/windows/maileditwindow.cpp
+++ b/src/gui/windows/maileditwindow.cpp
@@ -69,11 +69,14 @@ MailEditWindow::MailEditWindow() :
mItemLabel(new Label(this, _("Item:"))),
// TRANSLATORS: mail edit window label
mMessageLabel(new Label(this, _("Message:"))),
- mToField(new TextField(this)),
- mSubjectField(new TextField(this)),
+ mToField(new TextField(this, std::string(), LoseFocusOnTab_true,
+ nullptr, std::string(), false)),
+ mSubjectField(new TextField(this, std::string(), LoseFocusOnTab_true,
+ nullptr, std::string(), false)),
mMoneyField(new IntTextField(this, 0, 0,
settings.enableNewMailSystem ? INT_MAX : 10000000, Enable_true, 0)),
- mMessageField(new TextField(this)),
+ mMessageField(new TextField(this, std::string(), LoseFocusOnTab_true,
+ nullptr, std::string(), false)),
mInventory(new Inventory(InventoryType::MailEdit,
settings.enableNewMailSystem ? -1 : 1)),
mItemContainer(new ItemContainer(this, mInventory, 100000,