summaryrefslogtreecommitdiff
path: root/src/gui/windows/maileditwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-26 19:34:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-26 19:34:40 +0300
commit81145e509cdba68c94c4173e16ddd492cd813db8 (patch)
tree3603449bfdd5e2d357b240cdaa5cead9b4077a1f /src/gui/windows/maileditwindow.cpp
parent5e7a4e68d73eb9adcb72de9d7e2b0e592f2c58cc (diff)
downloadmv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.gz
mv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.bz2
mv-81145e509cdba68c94c4173e16ddd492cd813db8.tar.xz
mv-81145e509cdba68c94c4173e16ddd492cd813db8.zip
Remove default parameters from textfield.
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,